From 1caa683ec1e4634bad5f8169d3b477c7df513d01 Mon Sep 17 00:00:00 2001 From: kwhite17 Date: Sat, 18 Mar 2017 00:36:54 +0000 Subject: [PATCH] lib/scanner: Stopped outputting rescan debug message if file doesn't exist locally (fixes #1350) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4028 --- lib/scanner/walk.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,