chiark / gitweb /
logging: if logevent_is_boringtwisted fails, print why when we print the exception
[hippotat.git] / hippotatlib / __init__.py
index 9c2ebfd869f459fd4721b13d1e36b40dc494e51e..588012a2a845ef40c7c7f1bf2171ff355e4a2b8f 100644 (file)
@@ -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)