From: Matt Corallo Date: Mon, 5 Sep 2022 16:28:11 +0000 (+0000) Subject: Ensure we log private channel_updates at a non-GOSSIP log level X-Git-Tag: v0.0.111~18^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=602cf5c12bb4ff7ea28291e4d6a7be770b8863d8;p=rust-lightning 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. --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index d011d6b42..2dd735ccd 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -5154,6 +5154,7 @@ impl ChannelMana if were_node_one == msg_from_node_one { return Ok(NotifyOption::SkipPersist); } else { + log_debug!(self.logger, "Received channel_update for channel {}.", log_bytes!(chan_id)); try_chan_entry!(self, chan.get_mut().channel_update(&msg), channel_state, chan); } },