From eac48da2d6d8ee8f7cc2cb0942f06a27191e0df0 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 27 Oct 2016 15:29:24 -0700 Subject: [PATCH] Small log formatting fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and clise to close 👼 Signed-off-by: Vincent Demeester Upstream-commit: 2f7e9078466f0d1b3a6a83cc269bce4e0a3b05f0 Component: engine --- components/engine/daemon/exec/exec.go | 2 +- components/engine/runconfig/streams.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/daemon/exec/exec.go b/components/engine/daemon/exec/exec.go index d07a883687..093eeef6bd 100644 --- a/components/engine/daemon/exec/exec.go +++ b/components/engine/daemon/exec/exec.go @@ -49,7 +49,7 @@ func (c *Config) InitializeStdio(iop libcontainerd.IOPipe) error { if c.Stdin() == nil && !c.Tty && runtime.GOOS == "windows" { if iop.Stdin != nil { if err := iop.Stdin.Close(); err != nil { - logrus.Error("error closing exec stdin: %+v", err) + logrus.Errorf("error closing exec stdin: %+v", err) } } } diff --git a/components/engine/runconfig/streams.go b/components/engine/runconfig/streams.go index 8a91bde688..36d0810b00 100644 --- a/components/engine/runconfig/streams.go +++ b/components/engine/runconfig/streams.go @@ -135,7 +135,7 @@ func (streamConfig *StreamConfig) CopyToPipe(iop libcontainerd.IOPipe) { go func() { pools.Copy(iop.Stdin, stdin) if err := iop.Stdin.Close(); err != nil { - logrus.Error("failed to clise stdin: %+v", err) + logrus.Errorf("failed to close stdin: %+v", err) } }() }