Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
p2p: log 'Send failed' on Debug (#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman authored and melekes committed Nov 16, 2018
1 parent 85bba82 commit d8ab850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
2 changes: 1 addition & 1 deletion p2p/conn/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d8ab850

Please sign in to comment.