Browse Source

add more logging shortcuts

hard-fail-on-bad-server-string
ThomasV 5 years ago
parent
commit
99f933401a
  1. 1
      electrum/address_synchronizer.py
  2. 1
      electrum/lnpeer.py
  3. 1
      electrum/lnworker.py

1
electrum/address_synchronizer.py

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

1
electrum/lnpeer.py

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

1
electrum/lnworker.py

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

Loading…
Cancel
Save