From a1baf860b6fadeb0cf1c0a0083fff1341954b572 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 15 Jul 2020 23:50:26 +0200 Subject: [PATCH] wallet.set_up_to_date: (trivial) reduce log spam --- electrum/address_synchronizer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py index aab46d9d5..a24bf5ca9 100644 --- a/electrum/address_synchronizer.py +++ b/electrum/address_synchronizer.py @@ -617,10 +617,12 @@ class AddressSynchronizer(Logger): def set_up_to_date(self, up_to_date): with self.lock: + status_changed = self.up_to_date != up_to_date self.up_to_date = up_to_date if self.network: self.network.notify('status') - self.logger.info(f'set_up_to_date: {up_to_date}') + if status_changed: + self.logger.info(f'set_up_to_date: {up_to_date}') def is_up_to_date(self): with self.lock: return self.up_to_date