Richard van der Hoff b387ee17b6 Improve exception handling in persist_event
1. use `deferred.errback()` instead of `deferred.errback(e)`, which means that
a Failure object will be constructed using the current exception state,
*including* its stack trace - so the stack trace is saved in the Failure,
leading to better exception reports.

2. Set `consumeErrors=True` on the ObservableDeferred, because we know that
there will always be at least one observer - which avoids a spurious "CRITICAL:
unhandled exception in Deferred" error in the logs
2018-01-29 17:05:33 +00:00
..
2018-01-17 14:59:44 +00:00
2018-01-16 17:23:32 +00:00
2017-06-19 12:37:27 +01:00
2017-11-09 15:56:16 +00:00
2017-03-24 13:28:20 +00:00
2017-12-05 11:09:31 +00:00
2017-05-18 17:17:53 +01:00
2016-01-07 04:26:29 +00:00
2017-06-19 17:48:28 +01:00
2018-01-27 17:21:57 +00:00