MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readServerLog

Function readServerLog

e2e/cloud/storage-error-report-shape.test.ts:126–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124];
125
126const readServerLog = (): string => {
127 const texts = serverLogCandidates.flatMap((path) => {
128 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: probing which of the two stdout sinks this run uses
129 try {
130 return [readFileSync(path, "utf8")];
131 } catch {
132 return [];
133 }
134 });
135 return texts.join("\n");
136};
137
138const decodeReport = Schema.decodeUnknownOption(
139 Schema.Struct({

Callers 1

reportForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected