From d1e2ca71aedac8ef3794fe445b135b7939ca08b8 Mon Sep 17 00:00:00 2001 From: Sam Broughton Date: Thu, 10 Aug 2017 13:51:56 +0100 Subject: [PATCH] Remove git poll loop verbose logging --- daemon/loop.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/daemon/loop.go b/daemon/loop.go index 312562e28..06956c693 100644 --- a/daemon/loop.go +++ b/daemon/loop.go @@ -51,7 +51,6 @@ func (d *Daemon) GitPollLoop(stop chan struct{}, wg *sync.WaitGroup, logger log. } imagePollTimer := time.NewTimer(d.RegistryPollInterval) - loopLogger := log.NewContext(logger).With("thing", "git-poll-loop") // Ask for a sync, and to poll images, straight away d.askForSync() @@ -59,27 +58,21 @@ func (d *Daemon) GitPollLoop(stop chan struct{}, wg *sync.WaitGroup, logger log. for { select { case <-stop: - loopLogger.Log("case", "stop") logger.Log("stopping", "true") return case <-d.pollImagesSoon: - loopLogger.Log("case", "pollImagesSoon") d.pollForNewImages(logger) imagePollTimer.Stop() imagePollTimer = time.NewTimer(d.RegistryPollInterval) case <-imagePollTimer.C: - loopLogger.Log("case", "imagePollTimer") d.askForImagePoll() case <-d.syncSoon: - loopLogger.Log("case", "syncSoon") pullThen(d.doSync) case <-gitPollTimer.C: - loopLogger.Log("case", "gitPollTimer") // Time to poll for new commits (unless we're already // about to do that) d.askForSync() case job := <-d.Jobs.Ready(): - loopLogger.Log("case", "jobReady") jobLogger := log.NewContext(logger).With("jobID", job.ID) jobLogger.Log("state", "in-progress") // It's assumed that (successful) jobs will push commits