mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
LNWatcher: implement diagnostic_name; for nicer log lines
This commit is contained in:
parent
6bd1a04aee
commit
9380b331e4
1 changed files with 7 additions and 1 deletions
|
@ -276,6 +276,9 @@ class WatchTower(LNWatcher):
|
||||||
# and a queue for seeing which txs are being published
|
# and a queue for seeing which txs are being published
|
||||||
self.tx_progress = {} # type: Dict[str, ListenerItem]
|
self.tx_progress = {} # type: Dict[str, ListenerItem]
|
||||||
|
|
||||||
|
def diagnostic_name(self):
|
||||||
|
return "local_tower"
|
||||||
|
|
||||||
async def start_watching(self):
|
async def start_watching(self):
|
||||||
# I need to watch the addresses from sweepstore
|
# I need to watch the addresses from sweepstore
|
||||||
lst = await self.sweepstore.list_channels()
|
lst = await self.sweepstore.list_channels()
|
||||||
|
@ -344,9 +347,12 @@ class WatchTower(LNWatcher):
|
||||||
class LNWalletWatcher(LNWatcher):
|
class LNWalletWatcher(LNWatcher):
|
||||||
|
|
||||||
def __init__(self, lnworker: 'LNWallet', network: 'Network'):
|
def __init__(self, lnworker: 'LNWallet', network: 'Network'):
|
||||||
LNWatcher.__init__(self, network)
|
|
||||||
self.network = network
|
self.network = network
|
||||||
self.lnworker = lnworker
|
self.lnworker = lnworker
|
||||||
|
LNWatcher.__init__(self, network)
|
||||||
|
|
||||||
|
def diagnostic_name(self):
|
||||||
|
return f"{self.lnworker.wallet.diagnostic_name()}-LNW"
|
||||||
|
|
||||||
@ignore_exceptions
|
@ignore_exceptions
|
||||||
@log_exceptions
|
@log_exceptions
|
||||||
|
|
Loading…
Add table
Reference in a new issue