Merge pull request #23466 from yongtang/23459-logrus-formatting-2

Fix incorrect usage of logrus when formatting string is present
This commit is contained in:
Vincent Demeester 2016-06-12 10:21:04 +02:00 committed by GitHub
commit 434a46e652
2 changed files with 2 additions and 2 deletions

View file

@ -362,7 +362,7 @@ func verifyContainerResources(resources *containertypes.Resources, sysInfo *sysi
}
if resources.CPUPercent > 0 {
warnings = append(warnings, "%s does not support CPU percent. Percent discarded.", runtime.GOOS)
logrus.Warn("%s does not support CPU percent. Percent discarded.", runtime.GOOS)
logrus.Warnf("%s does not support CPU percent. Percent discarded.", runtime.GOOS)
resources.CPUPercent = 0
}

View file

@ -89,7 +89,7 @@ func (e *eventObserver) Match(match eventMatcher, process eventMatchProcessor) {
err = io.EOF
}
logrus.Debug("EventObserver scanner loop finished: %v", err)
logrus.Debugf("EventObserver scanner loop finished: %v", err)
e.disconnectionError = err
}