From 0a8f0f82e0df6e62076d0f6771bdfcc23da72bc7 Mon Sep 17 00:00:00 2001 From: John Howard Date: Mon, 13 Jul 2015 10:36:36 -0700 Subject: [PATCH] Quieter debug logging for clean exec commands Signed-off-by: John Howard Upstream-commit: b271593c34a67f4040405c952fdb402bf5dcd151 Component: engine --- components/engine/daemon/exec.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/engine/daemon/exec.go b/components/engine/daemon/exec.go index 82e267bc22..790fad5d73 100644 --- a/components/engine/daemon/exec.go +++ b/components/engine/daemon/exec.go @@ -268,7 +268,9 @@ func (d *Daemon) execCommandGC() { } } } - logrus.Debugf("clean %d unused exec commands", cleaned) + if cleaned > 0 { + logrus.Debugf("clean %d unused exec commands", cleaned) + } } }