MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / warnInotifyLimit

Method warnInotifyLimit

src/sync/watcher.ts:884–888  ·  view source on GitHub ↗

* Warn ONCE that the Linux inotify watch budget is exhausted (ENOSPC), and * stop adding new watches for the rest of this session — every further * `inotify_add_watch` would fail too, so walking the rest of the tree is * waste. Unlike degrade this is NON-fatal: the watches already

(context: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

882 * The message names the kernel knob to raise (`fs.inotify.max_user_watches`).
883 */
884 private warnInotifyLimit(context: Record<string, unknown> = {}): void {
885 if (this.inotifyLimitWarned) return;
886 this.inotifyLimitWarned = true;
887 logWarn(INOTIFY_LIMIT_REASON, { watchedDirs: this.dirWatchers.size, ...context });
888 }
889
890 /**
891 * Whether live watching has degraded or is still catching up after re-arm.

Callers 1

watchDirectoryMethod · 0.95

Calls 1

logWarnFunction · 0.90

Tested by

no test coverage detected