MCPcopy
hub / github.com/webpack/webpack / _log

Method _log

lib/FileSystemInfo.js:1561–1574  ·  lib/FileSystemInfo.js::FileSystemInfo._log

* Processes the provided path. * @private * @param {string} path path * @param {string} reason reason * @param {EXPECTED_ANY[]} args arguments

(path, reason, ...args)

Source from the content-addressed store, hash-verified

1559 * @param {EXPECTED_ANY[]} args arguments
1560 */
1561 _log(path, reason, ...args) {
1562 const key = path + reason;
1563 const loggedPaths = /** @type {LoggedPaths} */ (this._loggedPaths);
1564 if (loggedPaths.has(key)) return;
1565 loggedPaths.add(key);
1566 /** @type {Logger} */
1567 (this.logger).debug(`${path} invalidated because ${reason}`, ...args);
1568 if (--this._remainingLogs === 0) {
1569 /** @type {Logger} */
1570 (this.logger).debug(
1571 class="st">"Logging limit has been reached and no further logging will be emitted by FileSystemInfo"
1572 );
1573 }
1574 }
1575
1576 clear() {
1577 this._remainingLogs = this.logger ? 40 : 0;

Callers 5

invalidWithErrorMethod · 0.95
checkHashMethod · 0.95
checkExistenceMethod · 0.95
checkFileMethod · 0.95
checkContextMethod · 0.95

Calls 3

debugMethod · 0.80
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected