Merge pull request #380 from GUVWAF/master

Remove additional print statements
This commit is contained in:
Ben Meadors
2022-10-09 09:59:51 -05:00
committed by GitHub

View File

@@ -518,7 +518,6 @@ class Node:
logging.debug(f'onRequestGetMetadata() p:{p}')
if p["decoded"]["portnum"] == portnums_pb2.PortNum.Name(portnums_pb2.PortNum.ROUTING_APP):
print('No admin, error reason: ', p["decoded"]["routing"]["errorReason"])
if p["decoded"]["routing"]["errorReason"] != "NONE":
logging.warning(f'Metadata request failed, error reason: {p["decoded"]["routing"]["errorReason"]}')
self._timeout.expireTime = time.time() # Do not wait any longer
@@ -538,7 +537,6 @@ class Node:
logging.debug(f'onResponseRequestChannel() p:{p}')
if p["decoded"]["portnum"] == portnums_pb2.PortNum.Name(portnums_pb2.PortNum.ROUTING_APP):
print('No admin, error reason: ', p["decoded"]["routing"]["errorReason"])
if p["decoded"]["routing"]["errorReason"] != "NONE":
logging.warning(f'Channel request failed, error reason: {p["decoded"]["routing"]["errorReason"]}')
self._timeout.expireTime = time.time() # Do not wait any longer