(msg string, a ...interface{})
| 48 | } |
| 49 | |
| 50 | func logDebug(msg string, a ...interface{}) { |
| 51 | if !debugging { |
| 52 | return |
| 53 | } |
| 54 | defer log.SetFlags(log.Flags()) |
| 55 | log.SetFlags(log.Flags() | log.Lshortfile) |
| 56 | msg = fmt.Sprintf(msg, a...) |
| 57 | _ = log.Output(2, msg) |
| 58 | } |
| 59 | |
| 60 | func logMsg(format, msg string, a ...interface{}) { |
| 61 | defer log.SetFlags(log.Flags()) |
no outgoing calls
no test coverage detected