From: Matt Corallo Date: Thu, 23 Aug 2018 20:05:57 +0000 (-0400) Subject: Add trace logs for Errs when handling peer messages X-Git-Tag: v0.0.12~342^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=7345c0b3ceec61967180f27e0853605bc0156931;p=rust-lightning Add trace logs for Errs when handling peer messages --- diff --git a/src/ln/peer_handler.rs b/src/ln/peer_handler.rs index 5e9424243..f674b89fa 100644 --- a/src/ln/peer_handler.rs +++ b/src/ln/peer_handler.rs @@ -308,17 +308,22 @@ impl PeerManager { continue; }, msgs::ErrorAction::DisconnectPeer { msg: _ } => { + //TODO: Try to push msg + log_trace!(self, "Got Err handling message, disconnecting peer because {}", e.err); return Err(PeerHandleError{ no_connection_possible: false }); }, msgs::ErrorAction::IgnoreError => { + log_trace!(self, "Got Err handling message, ignoring because {}", e.err); continue; }, msgs::ErrorAction::SendErrorMessage { msg } => { + log_trace!(self, "Got Err handling message, sending Error message because {}", e.err); encode_and_send_msg!(msg, 17); continue; }, } } else { + log_debug!(self, "Got Err handling message, action not yet filled in: {}", e.err); return Err(PeerHandleError{ no_connection_possible: false }); } }