add problem_code to daemon_status
This commit is contained in:
parent
dc969f80f3
commit
c4620a0b0c
1 changed files with 3 additions and 1 deletions
|
@ -1024,9 +1024,11 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
'is_lagging': flag set to indicate lag, if set message will contain relevant message
|
'is_lagging': flag set to indicate lag, if set message will contain relevant message
|
||||||
"""
|
"""
|
||||||
|
|
||||||
r = {'code': self.startup_status[0], 'message': self.startup_status[1], 'progress': None, 'is_lagging': None}
|
r = {'code': self.startup_status[0], 'message': self.startup_status[1],
|
||||||
|
'progress': None, 'is_lagging': None, 'problem_code': None}
|
||||||
|
|
||||||
if self.connection_problem:
|
if self.connection_problem:
|
||||||
|
r['problem_code'] = self.connection_problem[0]
|
||||||
r['message'] = self.connection_problem[1]
|
r['message'] = self.connection_problem[1]
|
||||||
r['is_lagging'] = True
|
r['is_lagging'] = True
|
||||||
elif self.startup_status[0] == LOADING_WALLET_CODE:
|
elif self.startup_status[0] == LOADING_WALLET_CODE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue