Fix logging formatting

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: aa01ee4ac5b8bd2be25db06938533347223f30ba
Component: engine
This commit is contained in:
Tonis Tiigi
2016-10-25 18:34:35 -07:00
parent 8c5b951858
commit b4087aee32
2 changed files with 2 additions and 2 deletions

View File

@ -1049,7 +1049,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

@ -117,7 +117,7 @@ func (ctr *container) start(checkpoint string, checkpointDir string, attachStdio
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():
}