Fix harmless error message in logs when ScanSchedule set was "0"

Message:
`ERRO[0000] Error scheduling periodic scan                error="expected exactly 5 fields, found 1: [0]"`
This commit is contained in:
Deluan
2021-09-26 15:57:27 -04:00
parent 5680e53949
commit 6752e0a17d
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func runNavidrome() {
if schedule != "" {
go schedulePeriodicScan(schedule)
} else {
log.Warn("Periodic scan is DISABLED", "schedule", schedule)
log.Warn("Periodic scan is DISABLED")
}
if err := g.Run(); err != nil {