Fix logging formatting

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit aa01ee4ac5)
This commit is contained in:
Tonis Tiigi 2016-10-25 18:34:35 -07:00
parent e136d3ef93
commit 1e69caad8c
2 changed files with 2 additions and 2 deletions

View file

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

View file

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