Skip to content

Commit

Permalink
reduce log frequency (#772)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
  • Loading branch information
rberrelleza committed Mar 21, 2020
1 parent e3c2fb5 commit 2344cb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/syncthing/syncthing.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ func (s *Syncthing) WaitForScanning(ctx context.Context, dev *model.Dev, local b
continue
}

log.Infof("syncthing folder local=%t is '%s'", local, status.State)
if i%100 == 0 {
// one log every 10 seconds
log.Infof("syncthing folder local=%t is '%s'", local, status.State)
}

if status.State != "scanning" && status.State != "scan-waiting" {
return nil
}
Expand Down

0 comments on commit 2344cb5

Please sign in to comment.