From 87764445e8352c83ca0ca36b21eb9e22d4678951 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 3 Oct 2014 17:55:03 +0200 Subject: [PATCH] Some debug prints in the puller loop skips --- internal/model/puller.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/model/puller.go b/internal/model/puller.go index e1f8f469e..d2f3c854d 100644 --- a/internal/model/puller.go +++ b/internal/model/puller.go @@ -111,6 +111,10 @@ loop: // device A to device B, so we have something to work against. case <-pullTimer.C: if !initialScanCompleted { + // How did we even get here? + if debug { + l.Debugln(p, "skip (initial)") + } pullTimer.Reset(nextPullIntv) continue } @@ -118,6 +122,9 @@ loop: // RemoteLocalVersion() is a fast call, doesn't touch the database. curVer := p.model.RemoteLocalVersion(p.folder) if curVer == prevVer { + if debug { + l.Debugln(p, "skip (curVer == prevVer)", prevVer) + } pullTimer.Reset(checkPullIntv) continue }