MCPcopy
hub / github.com/probelabs/goreplay / Debug

Function Debug

settings.go:233–243  ·  view source on GitHub ↗

Debug take an effect only if --verbose greater than 0 is specified

(level int, args ...interface{})

Source from the content-addressed store, hash-verified

231
232// Debug take an effect only if --verbose greater than 0 is specified
233func Debug(level int, args ...interface{}) {
234 if Settings.Verbose >= level {
235 debugMutex.Lock()
236 defer debugMutex.Unlock()
237 now := time.Now()
238 diff := now.Sub(previousDebugTime)
239 previousDebugTime = now
240 fmt.Fprintf(os.Stderr, "[DEBUG][elapsed %s]: ", diff)
241 fmt.Fprintln(os.Stderr, args...)
242 }
243}

Callers 15

mainFunction · 0.70
reportStatsMethod · 0.70
DisconnectMethod · 0.70
isAliveMethod · 0.70
SendMethod · 0.70
flushMethod · 0.70
sendRequestMethod · 0.70
NewHTTPClientFunction · 0.70
NewMiddlewareFunction · 0.70
ReadFromMethod · 0.70
readMethod · 0.70
InitMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected