MCPcopy Create free account
hub / github.com/CPChain/chain / Debug

Method Debug

commons/log/logger.go:134–142  ·  view source on GitHub ↗

Debug logs a message at level Debug on the standard logger.

(msg string, args ...interface{})

Source from the content-addressed store, hash-verified

132
133// Debug logs a message at level Debug on the standard logger.
134func (logger *Logger) Debug(msg string, args ...interface{}) {
135 if logger.Logger.IsLevelEnabled(logrus.DebugLevel) {
136 if len(args)%2 != 0 {
137 root.Error(errCtx)
138 return
139 }
140 logger.WithFields(getFields(args...)).Debug(msg)
141 }
142}
143
144// Print logs a message at level Info on the standard logger.
145func (logger *Logger) Print(msg string, args ...interface{}) {

Callers 15

ConvertNodeURLFunction · 0.80
resolveDomainFunction · 0.80
SetRunModeFunction · 0.80
SenderMethod · 0.80
ValidateHeaderChainMethod · 0.80
InsertHeaderChainMethod · 0.80
loadMethod · 0.80
TransitionDbMethod · 0.80
loopMethod · 0.80
resetMethod · 0.80
PendingMethod · 0.80
addMethod · 0.80

Calls 2

getFieldsFunction · 0.85
ErrorMethod · 0.65

Tested by 2

testClientCancelFunction · 0.64
AcceptMethod · 0.64