Skip to content

Commit

Permalink
Change Error log to Warning when close stdin fail
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Jitang <[email protected]>
  • Loading branch information
coolljt0725 committed Nov 30, 2016
1 parent 9aedaf5 commit 37db022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/stream/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()
}
Expand Down

0 comments on commit 37db022

Please sign in to comment.