Browse Source

Quieter debug logging for clean exec commands

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 10 years ago
parent
commit
b271593c34
1 changed files with 3 additions and 1 deletions
  1. 3 1
      daemon/exec.go

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