|
if err != nil || c.logInfo { |
|
c.logger.Printf("Send loop terminated: err=%v", err) |
|
} |
|
if err != io.EOF || c.logInfo { |
|
c.logger.Printf("Recv loop terminated: err=%v", err) |
|
} |
I don't think it's OK to print the EOF error or nil error only because the logInfo
flag, since the message won't help.