mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
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:
parent
5680e53949
commit
6752e0a17d
2 changed files with 2 additions and 1 deletions
|
@ -158,6 +158,7 @@ func validateScanSchedule() error {
|
|||
}
|
||||
}
|
||||
if Server.ScanSchedule == "0" || Server.ScanSchedule == "" {
|
||||
Server.ScanSchedule = ""
|
||||
return nil
|
||||
}
|
||||
if _, err := time.ParseDuration(Server.ScanSchedule); err == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue