MCPcopy
hub / github.com/cubefs/cubefs / LogDebugf

Function LogDebugf

util/log/log.go:693–703  ·  view source on GitHub ↗

LogDebugf logs the debug information with specified format.

(format string, v ...interface{})

Source from the content-addressed store, hash-verified

691
692// LogDebugf logs the debug information with specified format.
693func LogDebugf(format string, v ...interface{}) {
694 if gLog == nil {
695 return
696 }
697 if DebugLevel&gLog.level != gLog.level {
698 return
699 }
700 s := fmt.Sprintf(format, v...)
701 s = gLog.SetPrefix(s, levelPrefixes[0])
702 gLog.debugLogger.Output(2, s)
703}
704
705func EnableDebug() bool {
706 if gLog == nil {

Callers 15

mountFunction · 0.92
parseMountOptionFunction · 0.92
SymLinkMethod · 0.92
LinkMethod · 0.92
serveConnMethod · 0.92
responseMethod · 0.92
queryCachePathMethod · 0.92
cacheMethod · 0.92
readMethod · 0.92
spaceManagerMethod · 0.92
freeSpaceMethod · 0.92
reBuildCacheKeysMethod · 0.92

Calls 2

OutputMethod · 0.65
SetPrefixMethod · 0.45

Tested by 11

initFunction · 0.74
TestEkMarshalFunction · 0.74
TestSplitKeyDeletionFunction · 0.74
TestDentryFunction · 0.74
TestTruncateAndDelFunction · 0.74
testDeleteDirTreeFunction · 0.74
testCleanSnapshotFunction · 0.74
testSnapshotDeletionFunction · 0.74
TestLogFunction · 0.68