]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove log for not changing feerate when it was equal
authorGursharan Singh <3442979+G8XSU@users.noreply.github.com>
Fri, 6 Oct 2023 01:18:10 +0000 (15:18 -1000)
committerGursharan Singh <3442979+G8XSU@users.noreply.github.com>
Fri, 6 Oct 2023 01:19:36 +0000 (15:19 -1000)
Log is not required in this case and creates unnecessary log lines at
trace level.

lightning/src/ln/channelmanager.rs

index 62c6741fbdf89f25595e2c855b7dbb2fdc2e609a..24ca65af00805a4463c6cac1c155a39f1b30cdf9 100644 (file)
@@ -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() {