MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / formatLogTail

Function formatLogTail

apps/kimi-code/src/cli/sub/server/daemon.ts:382–388  ·  view source on GitHub ↗
(logPath: string)

Source from the content-addressed store, hash-verified

380}
381
382function formatLogTail(logPath: string): string {
383 const tail = tailFile(logPath, 30);
384 if (tail.length === 0) {
385 return `Check the log for details: ${logPath}`;
386 }
387 return `Last log lines (${logPath}):\n${tail}`;
388}
389
390function tailFile(filePath: string, maxLines: number): string {
391 try {

Callers 2

ensureDaemonFunction · 0.85
formatDaemonBootFailureFunction · 0.85

Calls 1

tailFileFunction · 0.85

Tested by

no test coverage detected