Warningf is used to log (potentially) bad events, but nothing broke (even a little) and there is no need to panic yet.
(format string, things ...interface{})
| 135 | |
| 136 | // Warningf is used to log (potentially) bad events, but nothing broke (even a little) and there is no need to panic yet. |
| 137 | func Warningf(format string, things ...interface{}) { |
| 138 | atomic.AddUint64(warnLogLines, 1) |
| 139 | if fastcheck(WarningLevel) { |
| 140 | log(WarningLevel, fmt.Sprintf(format, things...), nil) |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | // Error is used to log errors that break or impair functionality. The task/process may have to be aborted and tried again later. The system is still operational. Maybe User/Admin should be informed. |
| 145 | func Error(msg string) { |