Skip to content

Commit

Permalink
fix(outbound): reduce messaging protocol error to debug (#4578)
Browse files Browse the repository at this point in the history
Description
---
Reduces "connection is closed" message from an error to a debug log
Closes #4544
  • Loading branch information
willyrgf committed Sep 6, 2022
1 parent 4b40e61 commit 99cef05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions comms/core/src/protocol/messaging/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ impl From<io::Error> for MessagingProtocolError {
ErrorKind::ConnectionReset |
ErrorKind::ConnectionAborted |
ErrorKind::BrokenPipe |
ErrorKind::WriteZero |
ErrorKind::NotConnected |
ErrorKind::UnexpectedEof => MessagingProtocolError::ConnectionClosed(err),
_ => MessagingProtocolError::Io(err),
}
Expand Down

0 comments on commit 99cef05

Please sign in to comment.