mirror of
https://github.com/containers/podman.git
synced 2025-07-04 10:10:32 +08:00
stopIfOnlyInfraRemains: log all errors
Log all stopping errors for each container so we actually see the real cause. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -262,7 +262,10 @@ func (p *Pod) stopIfOnlyInfraRemains(ctx context.Context, ignoreID string) error
|
||||
}
|
||||
}
|
||||
|
||||
_, err = p.stopWithTimeout(ctx, true, -1)
|
||||
errs, err := p.stopWithTimeout(ctx, true, -1)
|
||||
for ctr, e := range errs {
|
||||
logrus.Errorf("Failed to stop container %s: %v", ctr, e)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user