Skip to content

Commit

Permalink
stopIfOnlyInfraRemains: log all errors
Browse files Browse the repository at this point in the history
Log all stopping errors for each ctr.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Aug 8, 2024
1 parent 6752413 commit 0ae64b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libpod/pod_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0ae64b1

Please sign in to comment.