mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Small log formatting fixes
… and clise to close 👼
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
a3525d6f1f
commit
2f7e907846
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ func (c *Config) InitializeStdio(iop libcontainerd.IOPipe) error {
|
|||
if c.Stdin() == nil && !c.Tty && runtime.GOOS == "windows" {
|
||||
if iop.Stdin != nil {
|
||||
if err := iop.Stdin.Close(); err != nil {
|
||||
logrus.Error("error closing exec stdin: %+v", err)
|
||||
logrus.Errorf("error closing exec stdin: %+v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ func (streamConfig *StreamConfig) CopyToPipe(iop libcontainerd.IOPipe) {
|
|||
go func() {
|
||||
pools.Copy(iop.Stdin, stdin)
|
||||
if err := iop.Stdin.Close(); err != nil {
|
||||
logrus.Error("failed to clise stdin: %+v", err)
|
||||
logrus.Errorf("failed to close stdin: %+v", err)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue