remove ignored output from hub node
This commit is contained in:
parent
cd9a1e8c9e
commit
5061a35e66
2 changed files with 4 additions and 14 deletions
|
@ -2426,7 +2426,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
[--new_sdk_server=<new_sdk_server>]
|
[--new_sdk_server=<new_sdk_server>]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--name=<name> : (str) claim name (normalized_name)
|
--name=<name> : (str) claim name (normalized)
|
||||||
--text=<text> : (str) full text search
|
--text=<text> : (str) full text search
|
||||||
--claim_id=<claim_id> : (str) full or partial claim id
|
--claim_id=<claim_id> : (str) full or partial claim id
|
||||||
--claim_ids=<claim_ids> : (list) list of full claim ids
|
--claim_ids=<claim_ids> : (list) list of full claim ids
|
||||||
|
|
|
@ -461,25 +461,15 @@ class BlockchainNode:
|
||||||
|
|
||||||
|
|
||||||
class HubProcess(asyncio.SubprocessProtocol):
|
class HubProcess(asyncio.SubprocessProtocol):
|
||||||
|
|
||||||
IGNORE_OUTPUT = [
|
|
||||||
b'keypool keep',
|
|
||||||
b'keypool reserve',
|
|
||||||
b'keypool return',
|
|
||||||
]
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.ready = asyncio.Event()
|
self.ready = asyncio.Event()
|
||||||
self.stopped = asyncio.Event()
|
self.stopped = asyncio.Event()
|
||||||
self.log = log.getChild('hub')
|
self.log = log.getChild('hub')
|
||||||
|
|
||||||
def pipe_data_received(self, fd, data):
|
def pipe_data_received(self, fd, data):
|
||||||
if self.log and not any(ignore in data for ignore in self.IGNORE_OUTPUT):
|
if self.log:
|
||||||
if b'Error:' in data:
|
self.log.info(data.decode())
|
||||||
self.log.error(data.decode())
|
if b'error' in data.lower():
|
||||||
else:
|
|
||||||
self.log.info(data.decode())
|
|
||||||
if b'Error:' in data:
|
|
||||||
self.ready.set()
|
self.ready.set()
|
||||||
raise SystemError(data.decode())
|
raise SystemError(data.decode())
|
||||||
if b'listening on' in data:
|
if b'listening on' in data:
|
||||||
|
|
Loading…
Reference in a new issue