1
0

add more logging shortcuts

This commit is contained in:
ThomasV
2020-04-12 12:29:46 +02:00
parent 9a88c13b3d
commit 99f933401a
3 changed files with 3 additions and 0 deletions

View File

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

View File

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

View File

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