mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Add extra debug so we can tell apart postdelete hooks
Ensure we can identify what hook is running so we can tell which are erroring. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #960 Approved by: rhatdan
This commit is contained in:
@ -914,7 +914,7 @@ func (c *Container) postDeleteHooks(ctx context.Context) (err error) {
|
||||
return err
|
||||
}
|
||||
for i, hook := range extensionHooks {
|
||||
logrus.Debugf("container %s: invoke poststop hook %d", c.ID(), i)
|
||||
logrus.Debugf("container %s: invoke poststop hook %d, path %s", c.ID(), i, hook.Path)
|
||||
var stderr, stdout bytes.Buffer
|
||||
hookErr, err := exec.Run(ctx, &hook, state, &stdout, &stderr, exec.DefaultPostKillTimeout)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user