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
log_warn!($logger,"Not pruning network graph, consider enabling `std` or doing so manually with remove_stale_channels_and_tracking_with_time.");
375
-
log_trace!($logger,"Persisting network graph.");
374
+
log_warn!($logger,None,None,"Not pruning network graph, consider enabling `std` or doing so manually with remove_stale_channels_and_tracking_with_time.");
// If any public channel exists, return no hints and let the sender
602
602
// look at the public channels instead.
603
-
log_trace!(logger,"Not including channels in invoice route hints on account of public channel {}",
603
+
_log_trace_with_peer_id_channel_id!(logger,Some(channel.counterparty.node_id),Some(channel.channel_id),"Not including channels in invoice route hints on account of public channel {}",
604
604
log_bytes!(channel.channel_id));
605
605
returnvec![]
606
606
}
607
607
}
608
608
609
609
if channel.inbound_capacity_msat >= min_inbound_capacity {
610
610
if !min_capacity_channel_exists {
611
-
log_trace!(logger,"Channel with enough inbound capacity exists for invoice route hints");
611
+
_log_trace_with_peer_id_channel_id!(logger,Some(channel.counterparty.node_id),Some(channel.channel_id),"Channel with enough inbound capacity exists for invoice route hints");
log_trace!(logger,"Channel with connected peer exists for invoice route hints");
621
+
_log_trace_with_peer_id_channel_id!(logger,Some(channel.counterparty.node_id),Some(channel.channel_id),"Channel with connected peer exists for invoice route hints");
log_trace!(logger,"Including channel {} in invoice route hints",
706
+
_log_trace_with_peer_id_channel_id!(logger,Some(channel.counterparty.node_id),Some(channel.channel_id),"Including channel {} in invoice route hints",
707
707
log_bytes!(channel.channel_id));
708
708
}elseif !has_enough_capacity {
709
-
log_trace!(logger,"Ignoring channel {} without enough capacity for invoice route hints",
709
+
_log_trace_with_peer_id_channel_id!(logger,Some(channel.counterparty.node_id),Some(channel.channel_id),"Ignoring channel {} without enough capacity for invoice route hints",
Copy file name to clipboardExpand all lines: lightning-rapid-gossip-sync/src/processing.rs
+9-9
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ use lightning::ln::msgs::{
10
10
};
11
11
use lightning::routing::gossip::NetworkGraph;
12
12
use lightning::util::logger::Logger;
13
-
use lightning::{log_debug, log_warn, log_trace, log_given_level,log_gossip};
13
+
use lightning::{_log_debug_with_peer_id_channel_id, _log_warn_with_peer_id_channel_id, _log_trace_with_peer_id_channel_id, log_given_level,_log_gossip_with_peer_id_channel_id};
14
14
use lightning::util::ser::{BigSize,Readable};
15
15
use lightning::io;
16
16
@@ -59,7 +59,7 @@ impl<NG: Deref<Target=NetworkGraph<L>>, L: Deref> RapidGossipSync<NG, L> where L
// everything is fine, just a duplicate channel announcement
138
138
}else{
139
-
log_warn!(self.logger,"Failed to process channel announcement: {:?}", lightning_error);
139
+
_log_warn_with_peer_id_channel_id!(self.logger,None,None,"Failed to process channel announcement: {:?}", lightning_error);
140
140
returnErr(lightning_error.into());
141
141
}
142
142
}
@@ -145,7 +145,7 @@ impl<NG: Deref<Target=NetworkGraph<L>>, L: Deref> RapidGossipSync<NG, L> where L
145
145
previous_scid = 0;// updates start at a new scid
146
146
147
147
let update_count:u32 = Readable::read(read_cursor)?;
148
-
log_debug!(self.logger,"Processing RGS update from {} with {} nodes, {} channel announcements and {} channel updates.",
148
+
_log_debug_with_peer_id_channel_id!(self.logger,None,None,"Processing RGS update from {} with {} nodes, {} channel announcements and {} channel updates.",
0 commit comments