From 4e96d18396aa4b73b88cc30dc15cf6ac1d0b04f5 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 22 Jan 2021 20:36:35 +0000 Subject: [PATCH] print tor errors to stdout --- src/netcontroller/torcontrol/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/netcontroller/torcontrol/__init__.py b/src/netcontroller/torcontrol/__init__.py index d1b8b3c9..cb9763e6 100644 --- a/src/netcontroller/torcontrol/__init__.py +++ b/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: