tadd more logging shortcuts - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 99f933401a618e6b8e32b90314cf0c890213e631 DIR parent 9a88c13b3de000fa3a65e1039cf19c5635d83c9f HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 12 Apr 2020 12:29:46 +0200 add more logging shortcuts Diffstat: M electrum/address_synchronizer.py | 1 + M electrum/lnpeer.py | 1 + M electrum/lnworker.py | 1 + 3 files changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py t@@ -616,6 +616,7 @@ class AddressSynchronizer(Logger): 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}') def is_up_to_date(self): with self.lock: return self.up_to_date DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py t@@ -62,6 +62,7 @@ LN_P2P_NETWORK_TIMEOUT = 20 class Peer(Logger): + LOGGING_SHORTCUT = 'P' def __init__(self, lnworker: Union['LNGossip', 'LNWallet'], pubkey:bytes, transport: LNTransportBase): self._sent_init = False # type: bool DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -366,6 +366,7 @@ class LNWorker(Logger): class LNGossip(LNWorker): max_age = 14*24*3600 + LOGGING_SHORTCUT = 'g' def __init__(self, network): seed = os.urandom(32)