Skip to content

Commit

Permalink
Reduce error level form harmless errors
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: creack)
  • Loading branch information
creack committed Mar 31, 2014
1 parent c8ae307 commit a2487aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2374,11 +2374,11 @@ func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in io.Rea
}
if tcpc, ok := rwc.(*net.TCPConn); ok {
if err := tcpc.CloseWrite(); err != nil {
utils.Errorf("Couldn't send EOF: %s\n", err)
utils.Debugf("Couldn't send EOF: %s\n", err)
}
} else if unixc, ok := rwc.(*net.UnixConn); ok {
if err := unixc.CloseWrite(); err != nil {
utils.Errorf("Couldn't send EOF: %s\n", err)
utils.Debugf("Couldn't send EOF: %s\n", err)
}
}
// Discard errors due to pipe interruption
Expand All @@ -2387,14 +2387,14 @@ func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in io.Rea

if stdout != nil || stderr != nil {
if err := <-receiveStdout; err != nil {
utils.Errorf("Error receiveStdout: %s", err)
utils.Debugf("Error receiveStdout: %s", err)
return err
}
}

if !cli.isTerminal {
if err := <-sendStdin; err != nil {
utils.Errorf("Error sendStdin: %s", err)
utils.Debugf("Error sendStdin: %s", err)
return err
}
}
Expand All @@ -2408,7 +2408,7 @@ func (cli *DockerCli) getTtySize() (int, int) {
}
ws, err := term.GetWinsize(cli.terminalFd)
if err != nil {
utils.Errorf("Error getting size: %s", err)
utils.Debugf("Error getting size: %s", err)
if ws == nil {
return 0, 0
}
Expand All @@ -2425,7 +2425,7 @@ func (cli *DockerCli) resizeTty(id string) {
v.Set("h", strconv.Itoa(height))
v.Set("w", strconv.Itoa(width))
if _, _, err := readBody(cli.call("POST", "/containers/"+id+"/resize?"+v.Encode(), nil, false)); err != nil {
utils.Errorf("Error resize: %s", err)
utils.Debugf("Error resize: %s", err)
}
}

Expand Down

0 comments on commit a2487aa

Please sign in to comment.