Merge pull request #27763 from tonistiigi/fix-logging-formatting
Fix logging formatting Upstream-commit: e2133b42ffc76d86809048cd87de50ad1b7f082d Component: engine
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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():
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user