From df2f9e47b824b831e2e9898455e84cfdc2d0715b Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Wed, 4 Sep 2013 18:38:29 +0200 Subject: [PATCH] Fix arguments for format string. Change-Id: Ie0d55a70969c992b1afc6fa96b0e3f2171f0de5a --- main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 8cb1ef28d..b1e416292 100644 --- a/main.go +++ b/main.go @@ -106,8 +106,9 @@ func (p *prometheus) compact(olderThan time.Duration, groupSize int) error { select { case p.curationSema <- true: default: - glog.Warningf("Deferred compaction for %s and %s due to existing operation.", operation, groupSize) - return + glog.Warningf("Deferred compaction for %s and %s due to existing operation.", olderThan, groupSize) + + return nil } defer func() { @@ -134,8 +135,9 @@ func (p *prometheus) delete(olderThan time.Duration, batchSize int) error { select { case p.curationSema <- true: default: - glog.Warningf("Deferred compaction for %s and %s due to existing operation.", operation, groupSize) - return + glog.Warningf("Deferred deletion for %s due to existing operation.", olderThan) + + return nil } processor := metric.NewDeletionProcessor(&metric.DeletionProcessorOptions{