Browse Source

Merge pull request #14596 from Microsoft/quieter-clean-exec-commands

Quieter debug logging for clean exec commands
Doug Davis 10 năm trước cách đây
mục cha
commit
9158ddef89
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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)
+		}
 	}
 }