From 061e81419551d9640ebf5ace88f2c254c6077e1d Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Wed, 3 Sep 2014 13:40:28 +0100 Subject: [PATCH] Make sure to print exceptions properly from notifier failures --- synapse/notifier.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/synapse/notifier.py b/synapse/notifier.py index 3260aa744f..157925d102 100644 --- a/synapse/notifier.py +++ b/synapse/notifier.py @@ -167,7 +167,12 @@ class Notifier(object): ) def eb(failure): - logger.exception("Failed to notify listener", failure) + logger.error("Failed to notify listener", + exc_info=( + failure.type, + failure.value, + failure.getTracebackObject()) + ) yield defer.DeferredList( [notify(l).addErrback(eb) for l in listeners]