MCPcopy Index your code
hub / github.com/foxcpp/maddy / DebugMsg

Method DebugMsg

framework/log/log.go:142–149  ·  view source on GitHub ↗
(kind string, fields ...interface{})

Source from the content-addressed store, hash-verified

140}
141
142func (l *Logger) DebugMsg(kind string, fields ...interface{}) {
143 if !l.IsDebug() {
144 return
145 }
146 m := make(map[string]interface{}, len(fields)/2)
147 fieldsToMap(fields, m)
148 l.log(true, l.formatMsg(kind, m))
149}
150
151func fieldsToMap(fields []interface{}, out map[string]interface{}) {
152 var lastKey string

Callers 15

StartAllMethod · 0.80
ReloadAllMethod · 0.80
EarlyStopAllMethod · 0.80
StopAllMethod · 0.80
ensureInitializedMethod · 0.80
GetOpenMethod · 0.80
CloseUnusedMethod · 0.80
CloseMethod · 0.80
GetMethod · 0.80
SubscribeMethod · 0.80
UnsubscribeMethod · 0.80
eventHandlerMethod · 0.80

Calls 4

IsDebugMethod · 0.95
logMethod · 0.95
formatMsgMethod · 0.95
fieldsToMapFunction · 0.85

Tested by

no test coverage detected