MCPcopy Create free account
hub / github.com/codehamr/codehamr / CloseDebugLog

Function CloseDebugLog

internal/tui/debuglog.go:47–54  ·  view source on GitHub ↗

CloseDebugLog flushes and closes the log. Idempotent.

()

Source from the content-addressed store, hash-verified

45
46// CloseDebugLog flushes and closes the log. Idempotent.
47func CloseDebugLog() {
48 dbgMu.Lock()
49 defer dbgMu.Unlock()
50 if dbgFile != nil {
51 _ = dbgFile.Close()
52 dbgFile = nil
53 }
54}
55
56// redactSlash strips the /hamrpass <key> bearer token before it lands in any
57// log. A central hook covers any future secret-bearing command from one place.

Callers 3

mainFunction · 0.92
TestCtxPressureTripwireFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCtxPressureTripwireFunction · 0.68