MCPcopy Create free account
hub / github.com/ShipSecAI/studio / logHeartbeat

Function logHeartbeat

worker/src/utils/debug-logger.ts:77–88  ·  view source on GitHub ↗
(taskQueue: string)

Source from the content-addressed store, hash-verified

75 * Log heartbeat only to dedicated file, not to console
76 */
77export function logHeartbeat(taskQueue: string) {
78 const entry = {
79 timestamp: new Date().toISOString(),
80 taskQueue,
81 };
82
83 try {
84 fs.appendFileSync(HEARTBEAT_LOG_FILE, JSON.stringify(entry) + '\n');
85 } catch (_err) {
86 // Silently fail
87 }
88}
89
90/**
91 * Get recent logs from debug file

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected