adjust log levels for cron things
This commit is contained in:
@@ -12,7 +12,14 @@ func New() Logger {
|
||||
|
||||
func (l Logger) Info(m string, args ...interface{}) {
|
||||
args = append([]interface{}{m}, args...)
|
||||
logb.Info(args...)
|
||||
switch m {
|
||||
case "wake":
|
||||
logb.Verbose(args...)
|
||||
case "run":
|
||||
logb.Debug(args...)
|
||||
default:
|
||||
logb.Info(args...)
|
||||
}
|
||||
}
|
||||
|
||||
func (l Logger) Error(e error, m string, args ...interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user