Merge pull request #1878 from dims/fix-warning-to-warningf

Fix Warning->Warningf for better logging
This commit is contained in:
David Ashpole 2018-02-02 16:42:02 -08:00 committed by GitHub
commit 828ac5eb11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ func (c *containerData) housekeepingTick(timer <-chan time.Time, longHousekeepin
err := c.updateStats()
if err != nil {
if c.allowErrorLogging() {
glog.Warning("Failed to update stats for container \"%s\": %s", c.info.Name, err)
glog.Warningf("Failed to update stats for container \"%s\": %s", c.info.Name, err)
}
}
// Log if housekeeping took too long.