From d64e3055f94cb2ec6cefbb2f6eae0d02b1a92073 Mon Sep 17 00:00:00 2001 From: Chakib Ben Ziane Date: Thu, 14 Jun 2018 15:49:09 +0200 Subject: [PATCH] silence debug --- utils.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/utils.go b/utils.go index 8d26354..12e23fb 100644 --- a/utils.go +++ b/utils.go @@ -22,18 +22,19 @@ func debouncer(interval time.Duration, input chan fsnotify.Event, w IWatchable) if !isResting { // Run the job - log.Debug("Not resting, running job") + //log.Debug("Not resting, running job") w.Run() - log.Debug("Restting timer") + //log.Debug("Restting timer") timer.Reset(interval) - log.Debug("Is resting now") + //log.Debug("Is resting now") isResting = true - } else { - log.Debug("Resting, will not run job") } + //else { + //log.Debug("Resting, will not run job") + //} case <-timer.C: - log.Debugf("timer done, not resting") + //log.Debugf("timer done, not resting") isResting = false } }