MCPcopy
hub / github.com/direnv/direnv / logDebug

Function logDebug

internal/cmd/log.go:50–58  ·  view source on GitHub ↗
(msg string, a ...interface{})

Source from the content-addressed store, hash-verified

48}
49
50func logDebug(msg string, a ...interface{}) {
51 if !debugging {
52 return
53 }
54 defer log.SetFlags(log.Flags())
55 log.SetFlags(log.Flags() | log.Lshortfile)
56 msg = fmt.Sprintf(msg, a...)
57 _ = log.Output(2, msg)
58}
59
60func logMsg(format, msg string, a ...interface{}) {
61 defer log.SetFlags(log.Flags())

Callers 6

sanitizeValueFunction · 0.85
CheckMethod · 0.85
getLatestStatFunction · 0.85
exportCommandFunction · 0.85
LoadedRCMethod · 0.85
cmdEditActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected