mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 04:45:16 +00:00
lnchan: set diagnostic_name
previously was only set for tests
This commit is contained in:
parent
edff357fad
commit
f3d1f71e94
1 changed files with 6 additions and 1 deletions
|
@ -93,7 +93,12 @@ def str_bytes_dict_to_save(x):
|
||||||
|
|
||||||
class Channel(PrintError):
|
class Channel(PrintError):
|
||||||
def diagnostic_name(self):
|
def diagnostic_name(self):
|
||||||
return str(self.name)
|
if self.name:
|
||||||
|
return str(self.name)
|
||||||
|
try:
|
||||||
|
return f"lnchan_{bh2u(self.channel_id[-4:])}"
|
||||||
|
except:
|
||||||
|
return super().diagnostic_name()
|
||||||
|
|
||||||
def __init__(self, state, name = None):
|
def __init__(self, state, name = None):
|
||||||
assert 'local_state' not in state
|
assert 'local_state' not in state
|
||||||
|
|
Loading…
Add table
Reference in a new issue