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-Tag: hippotat/1.0.0~55^2~34 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;ds=inline;h=02a201e1e706788f355171ff979e1f82ecadfc71;p=hippotat.git 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)