You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add peer_id and channel_id explicitly to log records
Adds Context logging alongside Default logging as
an alternative to enable compiler recommendations for
adding extra context (peer_id and channel_id) to
log records
log_trace!(logger,"Considering {} channels for invoice route hints", channels.len());
627
+
log_trace!(logger,None,None,"Considering {} channels for invoice route hints", channels.len());
628
628
for channel in channels.into_iter().filter(|chan| chan.is_channel_ready){
629
629
if channel.get_inbound_payment_scid().is_none() || channel.counterparty.forwarding_info.is_none(){
630
-
log_trace!(logger,"Ignoring channel {} for invoice route hints", log_bytes!(channel.channel_id));
630
+
log_trace!(logger,Some(channel.counterparty.node_id),Some(channel.channel_id),"Ignoring channel {} for invoice route hints", log_bytes!(channel.channel_id));
631
631
continue;
632
632
}
633
633
@@ -640,15 +640,15 @@ where
640
640
}else{
641
641
// If any public channel exists, return no hints and let the sender
642
642
// look at the public channels instead.
643
-
log_trace!(logger,"Not including channels in invoice route hints on account of public channel {}",
643
+
log_trace!(logger,Some(channel.counterparty.node_id),Some(channel.channel_id),"Not including channels in invoice route hints on account of public channel {}",
"Skipping application of channel update for chan {} with flags {} as original data is missing.",
203
-
short_channel_id, channel_flags);
202
+
log_trace!(self.logger,"Skipping application of channel update for chan {} with flags {} as original data is missing.", short_channel_id, channel_flags);
204
203
skip_update_for_unknown_channel = true;
205
204
}
206
205
};
@@ -240,7 +239,7 @@ impl<NG: Deref<Target=NetworkGraph<L>>, L: Deref> RapidGossipSync<NG, L> where L
0 commit comments