quintodrome/scheduler/log_adapter.go

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

25 lines
452 B
Go
Raw Normal View History

package scheduler
import (
"github.com/navidrome/navidrome/log"
)
type logger struct{}
2026-02-08 05:57:30 -09:00
func (l *logger) Info(msg string, keysAndValues ...any) {
args := []any{
"Scheduler: " + msg,
}
args = append(args, keysAndValues...)
log.Debug(args...)
}
2026-02-08 05:57:30 -09:00
func (l *logger) Error(err error, msg string, keysAndValues ...any) {
args := []any{
"Scheduler: " + msg,
}
args = append(args, keysAndValues...)
args = append(args, err)
log.Error(args...)
}