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

Method warnInotifyLimit

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

683 * The message names the kernel knob to raise (`fs.inotify.max_user_watches`).
684 */
685 private warnInotifyLimit(context: Record<string, unknown> = {}): void {
686 if (this.inotifyLimitWarned) return;
687 this.inotifyLimitWarned = true;
688 logWarn(INOTIFY_LIMIT_REASON, { watchedDirs: this.dirWatchers.size, ...context });
689 }
690
691 /**
692 * 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