Skip to content

Commit

Permalink
f more context
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Mar 8, 2024
1 parent b047c4c commit 8646a8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lightning/src/onion_message/messenger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ where
&self, contents: T, destination: Destination, reply_path: Option<BlindedPath>,
log_suffix: fmt::Arguments
) -> Result<SendSuccess, SendError> {
let intro_node_logger =
WithContext::from(&self.logger, Some(destination.first_node()), None);
let result = self.find_path(destination)
.and_then(|path| self.enqueue_onion_message(path, contents, reply_path, log_suffix));

Expand All @@ -749,11 +751,11 @@ where
log_trace!(self.logger, "Failed sending onion message {}: {:?}", log_suffix, e);
},
Ok(SendSuccess::Buffered) => {
log_trace!(self.logger, "Buffered onion message {}", log_suffix);
log_trace!(intro_node_logger, "Buffered onion message {}", log_suffix);
},
Ok(SendSuccess::BufferedAwaitingConnection(node_id)) => {
log_trace!(
WithContext::from(&self.logger, Some(*node_id), None),
intro_node_logger,
"Buffered onion message waiting on peer connection {}: {}",
log_suffix, node_id
);
Expand Down

0 comments on commit 8646a8c

Please sign in to comment.