From a751f94ca0ceb357d15abfbd227c33266a4fbcdc 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 (cherry picked from commit 2f7e9078466f0d1b3a6a83cc269bce4e0a3b05f0) --- daemon/exec/exec.go | 2 +- runconfig/streams.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/exec/exec.go b/daemon/exec/exec.go index e950866620..da160d3bb2 100644 --- a/daemon/exec/exec.go +++ b/daemon/exec/exec.go @@ -47,7 +47,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/runconfig/streams.go b/runconfig/streams.go index 8a91bde688..36d0810b00 100644 --- a/runconfig/streams.go +++ b/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) } }() }