Skip to content

Commit

Permalink
Merge pull request #453 from joostjager/log-rgs-update-error
Browse files Browse the repository at this point in the history
Network graph update error logging
  • Loading branch information
tnull authored Jan 31, 2025
2 parents 574842c + 4501b61 commit 3b36020
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,15 @@ impl GossipSource {
Error::GossipUpdateFailed
})?;

let new_latest_sync_timestamp = gossip_sync
.update_network_graph(&update_data)
.map_err(|_| Error::GossipUpdateFailed)?;
let new_latest_sync_timestamp =
gossip_sync.update_network_graph(&update_data).map_err(|e| {
log_trace!(
logger,
"Failed to update network graph with RGS data: {:?}",
e
);
Error::GossipUpdateFailed
})?;
latest_sync_timestamp.store(new_latest_sync_timestamp, Ordering::Release);
Ok(new_latest_sync_timestamp)
},
Expand Down

0 comments on commit 3b36020

Please sign in to comment.