From: Gursharan Singh <3442979+G8XSU@users.noreply.github.com> Date: Fri, 6 Oct 2023 01:18:10 +0000 (-1000) Subject: Remove log for not changing feerate when it was equal X-Git-Tag: v0.0.118~24^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=2ee554a1c433ccdb52c7a4885f683960a3a91879;p=rust-lightning Remove log for not changing feerate when it was equal Log is not required in this case and creates unnecessary log lines at trace level. --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 62c6741fb..24ca65af0 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -4725,8 +4725,10 @@ where if !chan.context.is_outbound() { return NotifyOption::SkipPersistNoEvents; } // If the feerate has decreased by less than half, don't bother if new_feerate <= chan.context.get_feerate_sat_per_1000_weight() && new_feerate * 2 > chan.context.get_feerate_sat_per_1000_weight() { - log_trace!(self.logger, "Channel {} does not qualify for a feerate change from {} to {}.", + if new_feerate != chan.context.get_feerate_sat_per_1000_weight() { + log_trace!(self.logger, "Channel {} does not qualify for a feerate change from {} to {}.", chan_id, chan.context.get_feerate_sat_per_1000_weight(), new_feerate); + } return NotifyOption::SkipPersistNoEvents; } if !chan.context.is_live() {