Browse Source

print tor errors to stdout

master
Kevin Froman 1 year ago
parent
commit
4e96d18396
  1. 6
      src/netcontroller/torcontrol/__init__.py

6
src/netcontroller/torcontrol/__init__.py

@ -97,9 +97,11 @@ class NetController:
logger.debug(line.decode().replace('\n', ''))
else:
if 'err' in line.decode():
logger.error(line.decode().replace('\n', ''))
logger.error(
line.decode().replace('\n', ''), terminal=True)
elif 'warn' in line.decode():
logger.warn(line.decode().replace('\n', ''))
logger.warn(
line.decode().replace('\n', ''), terminal=True)
else:
logger.debug(line.decode().replace('\n', ''))
else:

Loading…
Cancel
Save