navidrome/scheduler/log_adapter.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
484 B
Go
Raw Normal View History

package scheduler
import (
"github.com/navidrome/navidrome/log"
)
type logger struct{}
func (l *logger) Info(msg string, keysAndValues ...interface{}) {
args := []interface{}{
"Scheduler: " + msg,
}
args = append(args, keysAndValues...)
log.Debug(args...)
}
func (l *logger) Error(err error, msg string, keysAndValues ...interface{}) {
args := []interface{}{
"Scheduler: " + msg,
}
args = append(args, keysAndValues...)
args = append(args, err)
log.Error(args...)
}