Pārlūkot izejas kodu

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

Quieter debug logging for clean exec commands
Doug Davis 10 gadi atpakaļ
vecāks
revīzija
9158ddef89
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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)
+		}
 	}
 	}
 }
 }