From 602cf5c12bb4ff7ea28291e4d6a7be770b8863d8 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 5 Sep 2022 16:28:11 +0000 Subject: [PATCH] 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. --- lightning/src/ln/channelmanager.rs | 1 + 1 file changed, 1 insertion(+) 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); } }, -- 2.39.5