Skip to content

Commit

Permalink
Merge pull request #3069 from TheBlueMatt/2024-06-log-chan-count
Browse files Browse the repository at this point in the history
Log how many nodes/channels we have synced when we try to route
  • Loading branch information
tnull authored May 20, 2024
2 parents 1237abf + 7f16039 commit 1d452d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightning/src/routing/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1989,10 +1989,11 @@ where L::Target: Logger {

let max_total_routing_fee_msat = route_params.max_total_routing_fee_msat.unwrap_or(u64::max_value());

log_trace!(logger, "Searching for a route from payer {} to {} {} MPP and {} first hops {}overriding the network graph with a fee limit of {} msat",
log_trace!(logger, "Searching for a route from payer {} to {} {} MPP and {} first hops {}overriding the network graph of {} nodes and {} channels with a fee limit of {} msat",
our_node_pubkey, LoggedPayeePubkey(payment_params.payee.node_id()),
if allow_mpp { "with" } else { "without" },
first_hops.map(|hops| hops.len()).unwrap_or(0), if first_hops.is_some() { "" } else { "not " },
network_graph.nodes().len(), network_graph.channels().len(),
max_total_routing_fee_msat);

// Step (1).
Expand Down

0 comments on commit 1d452d0

Please sign in to comment.