Skip to content

Commit

Permalink
Change initial scan message log level
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Jul 19, 2021
1 parent 19c2ef3 commit 1f03140
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,11 @@ func schedulePeriodicScan(schedule string) {
}

time.Sleep(2 * time.Second) // Wait 2 seconds before the initial scan
log.Info("Executing initial scan")
log.Debug("Executing initial scan")
if err := scanner.RescanAll(context.Background(), false); err != nil {
log.Error("Error executing initial scan", err)
}
log.Debug("Finished initial scan")
}

func startScheduler() (func() error, func(err error)) {
Expand Down

0 comments on commit 1f03140

Please sign in to comment.