p2p: log 'Send failed' on Debug (#2857)

This commit is contained in:
Ethan Buchman 2018-11-16 02:37:58 -05:00 committed by Anton Kaliaev
parent 85bba82154
commit d8ab8509de
2 changed files with 5 additions and 2 deletions

View File

@ -26,11 +26,14 @@ program](https://hackerone.com/tendermint).
### FEATURES:
- [log] new `log_format` config option, which can be set to 'plain' for colored
- [log] \#2843 New `log_format` config option, which can be set to 'plain' for colored
text or 'json' for JSON output
- [types] \#2767 New event types EventDataNewRound (with ProposerInfo) and EventDataCompleteProposal (with BlockID). (@kevlubkcm)
### IMPROVEMENTS:
- [p2p] \#2857 "Send failed" is logged at debug level instead of error.
### BUG FIXES:

View File

@ -269,7 +269,7 @@ func (c *MConnection) Send(chID byte, msgBytes []byte) bool {
default:
}
} else {
c.Logger.Error("Send failed", "channel", chID, "conn", c, "msgBytes", fmt.Sprintf("%X", msgBytes))
c.Logger.Debug("Send failed", "channel", chID, "conn", c, "msgBytes", fmt.Sprintf("%X", msgBytes))
}
return success
}