Skip to content

Commit

Permalink
Log route finding error
Browse files Browse the repository at this point in the history
  • Loading branch information
amackillop committed Dec 31, 2024
1 parent 76623f7 commit 3fd4379
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/prober.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ impl Prober {
let inflight_htlcs = self.channel_manager.compute_inflight_htlcs();
self.router
.find_route(&self.node_id, &route_params, Some(&first_hops[..]), inflight_htlcs)
.map_err(|_| Error::RouteNotFound)
.map_err(|e| {
log_error!(self.logger, "Failed to find route: {e:?}");
Error::RouteNotFound
})
}

/// Send a probe along the given path returning the payment hash and id of the fake payment.
Expand Down

0 comments on commit 3fd4379

Please sign in to comment.