MCPcopy
hub / github.com/anomalyco/opencode / startNetLog

Function startNetLog

packages/desktop/src/main/logging.ts:44–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44export async function startNetLog() {
45 if (netLog.currentlyLogging) return
46 netLogPath = join(run, "network.netlog")
47 await netLog.startLogging(netLogPath, { captureMode: "default", maxFileSize: NET_LOG_SIZE })
48 write("network", "net log started", { path: netLogPath })
49}
50
51export async function exportDebugLogs() {
52 const restartNetLog = netLog.currentlyLogging

Callers 2

index.tsFile · 0.90
exportDebugLogsFunction · 0.85

Calls 2

joinFunction · 0.85
writeFunction · 0.70

Tested by

no test coverage detected