Add a few more debug prints

This commit is contained in:
Jakob Borg
2014-10-16 09:32:23 +02:00
parent d031f958a9
commit 2fb8eb755b
3 changed files with 22 additions and 2 deletions

View File

@@ -163,6 +163,9 @@ loop:
curVer = lv
}
prevVer = curVer
if debug {
l.Debugln(p, "next pull in", nextPullIntv)
}
pullTimer.Reset(nextPullIntv)
break
}
@@ -173,6 +176,9 @@ loop:
// errors preventing us. Flag this with a warning and
// wait a bit longer before retrying.
l.Warnf("Folder %q isn't making progress - check logs for possible root cause. Pausing puller for %v.", p.folder, pauseIntv)
if debug {
l.Debugln(p, "next pull in", pauseIntv)
}
pullTimer.Reset(pauseIntv)
break
}
@@ -193,12 +199,16 @@ loop:
}
p.model.setState(p.folder, FolderIdle)
if p.scanIntv > 0 {
if debug {
l.Debugln(p, "next rescan in", p.scanIntv)
}
scanTimer.Reset(p.scanIntv)
}
if !initialScanCompleted {
l.Infoln("Completed initial scan (rw) of folder", p.folder)
initialScanCompleted = true
}
// Clean out old temporaries
case <-cleanTimer.C:
p.clean()