Browse Source

Fix logging formatting

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit aa01ee4ac5b8bd2be25db06938533347223f30ba)
Tonis Tiigi 8 years ago
parent
commit
1e69caad8c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      container/container.go
  2. 1 1
      libcontainerd/container_linux.go

+ 1 - 1
container/container.go

@@ -1009,7 +1009,7 @@ func (container *Container) InitializeStdio(iop libcontainerd.IOPipe) error {
 	if container.Stdin() == nil && !container.Config.Tty {
 	if container.Stdin() == nil && !container.Config.Tty {
 		if iop.Stdin != nil {
 		if iop.Stdin != nil {
 			if err := iop.Stdin.Close(); err != nil {
 			if err := iop.Stdin.Close(); err != nil {
-				logrus.Error("error closing stdin: %+v", err)
+				logrus.Warnf("error closing stdin: %+v", err)
 			}
 			}
 		}
 		}
 	}
 	}

+ 1 - 1
libcontainerd/container_linux.go

@@ -118,7 +118,7 @@ func (ctr *container) start(attachStdio StdioCallback) error {
 				select {
 				select {
 				case <-ready:
 				case <-ready:
 					if err := ctr.sendCloseStdin(); err != nil {
 					if err := ctr.sendCloseStdin(); err != nil {
-						logrus.Warnf("failed to close stdin: %+v")
+						logrus.Warnf("failed to close stdin: %+v", err)
 					}
 					}
 				case <-ctx.Done():
 				case <-ctx.Done():
 				}
 				}