wallet.set_up_to_date: (trivial) reduce log spam

This commit is contained in:
SomberNight 2020-07-15 23:50:26 +02:00
parent 67a5f2e09a
commit a1baf860b6
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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