From 02a201e1e706788f355171ff979e1f82ecadfc71 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 Apr 2017 20:51:14 +0100 Subject: [PATCH] logging: if logevent_is_boringtwisted fails, print why when we print the exception Signed-off-by: Ian Jackson --- hippotatlib/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.11.0