Make sure to print exceptions properly from notifier failures

pull/4/merge
Paul "LeoNerd" Evans 10 years ago
parent 56bc57cf50
commit 061e814195
  1. 7
      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]

Loading…
Cancel
Save