Skip to content

Commit 602cf5c

Browse files
committed
Ensure we log private channel_updates at a non-GOSSIP log level
If we receive a channel_update for one of our private channels, we will not log the message at the usual TRACE log level as the message falls into the gossip range. However, for our own channels they aren't *just* gossip, as we store that info and it changes how we generate invoices. Thus, we add a log in `ChannelManager` here at the DEBUG log level.
1 parent 36bffb5 commit 602cf5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5154,6 +5154,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
51545154
if were_node_one == msg_from_node_one {
51555155
return Ok(NotifyOption::SkipPersist);
51565156
} else {
5157+
log_debug!(self.logger, "Received channel_update for channel {}.", log_bytes!(chan_id));
51575158
try_chan_entry!(self, chan.get_mut().channel_update(&msg), channel_state, chan);
51585159
}
51595160
},

0 commit comments

Comments
 (0)