diff --git a/lib/scanner/walk.go b/lib/scanner/walk.go index dded1e879..7e77743ad 100644 --- a/lib/scanner/walk.go +++ b/lib/scanner/walk.go @@ -311,7 +311,9 @@ func (w *walker) walkRegular(relPath string, info os.FileInfo, fchan chan protoc return nil } - l.Debugln("rescan:", cf, info.ModTime().Unix(), info.Mode()&os.ModePerm) + if ok { + l.Debugln("rescan:", cf, info.ModTime().Unix(), info.Mode()&os.ModePerm) + } f := protocol.FileInfo{ Name: relPath,