diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-06-18 13:19:48 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-19 11:40:33 +0000 |
commit | 7676cd4b121381792c0491fe9827d17ab75af37f (patch) | |
tree | ac337e4f70459eecdd45bfce669e3cc49a94248c /libpod | |
parent | 564578989b1afe4b6047eb08c68a7126d25b5470 (diff) | |
download | podman-7676cd4b121381792c0491fe9827d17ab75af37f.tar.gz podman-7676cd4b121381792c0491fe9827d17ab75af37f.tar.bz2 podman-7676cd4b121381792c0491fe9827d17ab75af37f.zip |
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
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_internal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index ef4f907b6..bcaa2c6c3 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -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 { |