MCPcopy Create free account
hub / github.com/blues/note / defaultLoggerInit

Function defaultLoggerInit

lib/debug.go:220–236  ·  view source on GitHub ↗

Initialize for debugging

()

Source from the content-addressed store, hash-verified

218
219// Initialize for debugging
220func defaultLoggerInit() {
221 loggerInitMutex.Lock()
222 defer loggerInitMutex.Unlock()
223
224 // The first time through, start our handler
225 if loggerInitialized {
226 return
227 }
228
229 debugEnvInit()
230
231 loggerChannel = make(chan string, 500)
232
233 loggerInitialized = true
234
235 go loggerHandler()
236}
237
238// Background handler
239func loggerHandler() {

Callers 1

defaultLoggerFunction · 0.85

Calls 2

debugEnvInitFunction · 0.85
loggerHandlerFunction · 0.85

Tested by

no test coverage detected