From: Ian Jackson Date: Sun, 23 Apr 2017 19:51:14 +0000 (+0100) Subject: logging: if logevent_is_boringtwisted fails, print why when we print the exception X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/commitdiff_plain/02a201e1e706788f355171ff979e1f82ecadfc71 logging: if logevent_is_boringtwisted fails, print why when we print the exception Signed-off-by: Ian Jackson --- diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index 9c2ebfd..588012a 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -110,7 +110,8 @@ def logevent_is_boringtwisted(event): if dflag is None and DBG.TWISTED in debug_set: return False return True except Exception: - print(traceback.format_exc(), file=org_stderr) + print('EXCEPTION (IN BORINGTWISTED CHECK)', + traceback.format_exc(), file=org_stderr) return False @implementer(twisted.logger.ILogFilterPredicate)