* Processes the provided path. * @private * @param {string} path path * @param {string} reason reason * @param {EXPECTED_ANY[]} args arguments
(path, reason, ...args)
| 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; |
no test coverage detected