From 5eec59c9c4dc97fc5662e03eeaf0dfde7fb95af9 Mon Sep 17 00:00:00 2001 From: Cody Roseborough Date: Fri, 9 Sep 2016 15:39:59 -0700 Subject: [PATCH] Properly logs reason for killing a plugin. --- control/plugin/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/plugin/session.go b/control/plugin/session.go index 11a7d61c3..9d593af1d 100644 --- a/control/plugin/session.go +++ b/control/plugin/session.go @@ -134,7 +134,7 @@ func (s *SessionState) Kill(args []byte, reply *[]byte) error { if err != nil { return err } - s.logger.Debug("Kill called by agent, reason: %s\n", a.Reason) + s.logger.Debugf("Kill called by agent, reason: %s\n", a.Reason) go func() { time.Sleep(time.Second * 2) s.killChan <- 0