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

Function readDaemonLog

__tests__/daemon-pid-reuse.test.ts:157–160  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

155}
156
157function readDaemonLog(root: string): string {
158 try { return fs.readFileSync(path.join(root, '.codegraph', 'daemon.log'), 'utf8'); }
159 catch { return ''; }
160}
161
162function countListeningLines(root: string): number {
163 return readDaemonLog(root).split('\n').filter((l) => l.includes('[CodeGraph daemon] Listening on')).length;

Callers 1

countListeningLinesFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected