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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user