1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Change Error log to Warning when close stdin fail

Signed-off-by: Lei Jitang <leijitang@huawei.com>
(cherry picked from commit 37db022045)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Lei Jitang 2016-11-28 20:31:59 -05:00 committed by Victor Vieux
parent 79f153f49e
commit ee7d498364

View file

@ -135,7 +135,7 @@ func (c *Config) CopyToPipe(iop libcontainerd.IOPipe) {
go func() {
pools.Copy(iop.Stdin, stdin)
if err := iop.Stdin.Close(); err != nil {
logrus.Errorf("failed to close stdin: %+v", err)
logrus.Warnf("failed to close stdin: %+v", err)
}
}()
}