Browse Source

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

pull/2863/head
Ethan Buchman 6 years ago
committed by Anton Kaliaev
parent
commit
d8ab8509de
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      CHANGELOG_PENDING.md
  2. +1
    -1
      p2p/conn/connection.go

+ 4
- 1
CHANGELOG_PENDING.md 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:

+ 1
- 1
p2p/conn/connection.go 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
}


Loading…
Cancel
Save