0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-30 00:18:22 +02:00

Make sure to print exceptions properly from notifier failures

This commit is contained in:
Paul "LeoNerd" Evans 2014-09-03 13:40:28 +01:00
parent 56bc57cf50
commit 061e814195

View file

@ -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]