From 1d52c53eea22e413a42856154cc21a9f92cd5117 Mon Sep 17 00:00:00 2001 From: John Howard Date: Tue, 8 Sep 2015 10:53:17 -0700 Subject: [PATCH] Windows: Fix logging Signed-off-by: John Howard --- daemon/execdriver/windows/terminatekill.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/execdriver/windows/terminatekill.go b/daemon/execdriver/windows/terminatekill.go index f5e14dd06b..06333203e0 100644 --- a/daemon/execdriver/windows/terminatekill.go +++ b/daemon/execdriver/windows/terminatekill.go @@ -26,7 +26,7 @@ func kill(id string, pid int) error { // Terminate Process if err = hcsshim.TerminateProcessInComputeSystem(id, uint32(pid)); err != nil { - logrus.Warnf("Failed to terminate pid %d in %s", id, pid, err) + logrus.Warnf("Failed to terminate pid %d in %s: %q", pid, id, err) // Ignore errors err = nil } @@ -34,13 +34,13 @@ func kill(id string, pid int) error { if terminateMode { // Terminate the compute system if err = hcsshim.TerminateComputeSystem(id); err != nil { - logrus.Errorf("Failed to terminate %s - %s", id, err) + logrus.Errorf("Failed to terminate %s - %q", id, err) } } else { // Shutdown the compute system if err = hcsshim.ShutdownComputeSystem(id); err != nil { - logrus.Errorf("Failed to shutdown %s - %s", id, err) + logrus.Errorf("Failed to shutdown %s - %q", id, err) } } return err