Browse Source

Change Error log to Warning when close stdin fail

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Lei Jitang 8 years ago
parent
commit
37db022045
1 changed files with 1 additions and 1 deletions
  1. 1 1
      container/stream/streams.go

+ 1 - 1
container/stream/streams.go

@@ -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)
 				}
 			}()
 		}