MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / log

Function log

worker/model-worker.ts:45–54  ·  view source on GitHub ↗
(level: 'info' | 'warn' | 'error', message: string)

Source from the content-addressed store, hash-verified

43const decoder = new TextDecoder();
44
45function log(level: 'info' | 'warn' | 'error', message: string) {
46 if (parentPort) {
47 parentPort.postMessage({
48 type: 'log',
49 level,
50 message,
51 timestamp: Date.now(),
52 });
53 }
54}
55
56log('info', '[Worker] Started');
57log('info', `[Worker] Config: tmpDir=${tmpDir}, timeout=${config.timeout}, debug=${config.debug}`);

Callers 5

callLLMFunction · 0.85
model-worker.tsFile · 0.85
finishProcessingFunction · 0.85
processRequestAsyncFunction · 0.85
runWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected