Skip to content

Commit c5c10d1

Browse files
committed
f add additional trace-level logging for chan_update generation
1 parent f65bce8 commit c5c10d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
15981598
action: msgs::ErrorAction::IgnoreError
15991599
});
16001600
}
1601+
log_trace!(self.logger, "Attempting to generate broadcast channel update for channel {}", log_bytes!(chan.channel_id()));
16011602
self.get_channel_update_for_unicast(chan)
16021603
}
16031604

@@ -1607,6 +1608,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
16071608
/// provided evidence that they know about the existence of the channel.
16081609
/// May be called with channel_state already locked!
16091610
fn get_channel_update_for_unicast(&self, chan: &Channel<Signer>) -> Result<msgs::ChannelUpdate, LightningError> {
1611+
log_trace!(self.logger, "Attempting to generate channel update for channel {}", log_bytes!(chan.channel_id()));
16101612
let short_channel_id = match chan.get_short_channel_id() {
16111613
None => return Err(LightningError{err: "Channel not yet established".to_owned(), action: msgs::ErrorAction::IgnoreError}),
16121614
Some(id) => id,

0 commit comments

Comments
 (0)