From 2795e097bcd1842e750abf3af22a5ee69a702400 Mon Sep 17 00:00:00 2001
From: dengguangxing <dengguangxing@huawei.com>
Date: Mon, 22 Jan 2018 20:27:37 +0800
Subject: [PATCH] runc: add more specific log for hooks

[Changelog]: add more specific log for hooks
[Author]:Shukui Yang

Change-Id: I317232b42a5fd6bc16773fe4aa0a376d8b9b6806
Signed-off-by: dengguangxing <dengguangxing@huawei.com>
---
 libcontainer/configs/config.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libcontainer/configs/config.go b/libcontainer/configs/config.go
index c1b4a00..72910ff 100644
--- a/libcontainer/configs/config.go
+++ b/libcontainer/configs/config.go
@@ -279,9 +279,11 @@ type Capabilities struct {
 
 func (hooks HookList) RunHooks(state *specs.State) error {
 	for i, h := range hooks {
+		logrus.Infof("run hooks %d:%T", i, h)
 		if err := h.Run(state); err != nil {
 			return fmt.Errorf("error running hook #%d: %w", i, err)
 		}
+		logrus.Infof("hooks %d:%T done", i, h)
 	}
 
 	return nil
-- 
2.33.0

