MCPcopy
hub / github.com/cubefs/cubefs / LogInfof

Function LogInfof

util/log/log.go:634–644  ·  view source on GitHub ↗

LogInfo indicates log the information with specific format. TODO explain

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

Source from the content-addressed store, hash-verified

632
633// LogInfo indicates log the information with specific format. TODO explain
634func LogInfof(format string, v ...interface{}) {
635 if gLog == nil {
636 return
637 }
638 if InfoLevel&gLog.level != gLog.level {
639 return
640 }
641 s := fmt.Sprintf(format, v...)
642 s = gLog.SetPrefix(s, levelPrefixes[1])
643 gLog.infoLogger.Output(2, s)
644}
645
646func EnableInfo() bool {
647 if gLog == nil {

Callers 15

createUDSFunction · 0.92
recvFuseFdFromOldClientFunction · 0.92
sendSuspendRequestFunction · 0.92
sendResumeRequestFunction · 0.92
mainFunction · 0.92
doShutdownFunction · 0.92
startServerMethod · 0.92
newBcacheManagerFunction · 0.92
spaceManagerMethod · 0.92
cfs_getsummaryFunction · 0.92
StartMethod · 0.92
InodeGetMethod · 0.92

Calls 2

OutputMethod · 0.65
SetPrefixMethod · 0.45

Tested by 2

ApplyMemberChangeMethod · 0.74
TestLogFunction · 0.68