(kind string, fields ...interface{})
| 140 | } |
| 141 | |
| 142 | func (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 | |
| 151 | func fieldsToMap(fields []interface{}, out map[string]interface{}) { |
| 152 | var lastKey string |
no test coverage detected