From 7676cd4b121381792c0491fe9827d17ab75af37f Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 18 Jun 2018 13:19:48 -0400 Subject: 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 Closes: #960 Approved by: rhatdan --- libpod/container_internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-54-g00ecf