Fix logging formatting

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2016-10-25 18:34:35 -07:00
parent 77f4c30a21
commit aa01ee4ac5
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():
}