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) + } } }