MCPcopy
hub / github.com/colbymchenry/codegraph / warnInotifyLimit

Method warnInotifyLimit

src/sync/watcher.ts:613–617  ·  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

611 * The message names the kernel knob to raise (`fs.inotify.max_user_watches`).
612 */
613 private warnInotifyLimit(context: Record<string, unknown> = {}): void {
614 if (this.inotifyLimitWarned) return;
615 this.inotifyLimitWarned = true;
616 logWarn(INOTIFY_LIMIT_REASON, { watchedDirs: this.dirWatchers.size, ...context });
617 }
618
619 /**
620 * Whether live watching has degraded permanently (until the next start()).

Callers 1

watchTreeMethod · 0.95

Calls 1

logWarnFunction · 0.90

Tested by

no test coverage detected