Merge pull request #21407 from LK4D4/log_stats_errors
daemon: log errors from stats calls Upstream-commit: f668e36652e26f92c0f1a7fa3f648e5ed444b68e Component: engine
This commit is contained in:
@ -120,7 +120,7 @@ func (s *statsCollector) run() {
|
||||
for _, pair := range pairs {
|
||||
stats, err := s.supervisor.GetContainerStats(pair.container)
|
||||
if err != nil {
|
||||
if err, ok := err.(errNotRunning); ok {
|
||||
if _, ok := err.(errNotRunning); !ok {
|
||||
logrus.Errorf("collecting stats for %s: %v", pair.container.ID, err)
|
||||
}
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user