forked-synapse/synapse/push
Richard van der Hoff 9255a6cb17 Improve exception handling for background processes
There were a bunch of places where we fire off a process to happen in the
background, but don't have any exception handling on it - instead relying on
the unhandled error being logged when the relevent deferred gets
garbage-collected.

This is unsatisfactory for a number of reasons:
 - logging on garbage collection is best-effort and may happen some time after
   the error, if at all
 - it can be hard to figure out where the error actually happened.
 - it is logged as a scary CRITICAL error which (a) I always forget to grep for
   and (b) it's not really CRITICAL if a background process we don't care about
   fails.

So this is an attempt to add exception handling to everything we fire off into
the background.
2018-04-27 11:07:40 +01:00
..
__init__.py Remove code that's now been obsoleted or moved elsewhere 2016-04-07 16:31:38 +01:00
action_generator.py Remove context.push_actions 2018-02-15 15:47:06 +00:00
baserules.py Omit the *s for @room notifications 2017-10-16 13:38:10 +01:00
bulk_push_rule_evaluator.py Update comments 2018-02-21 11:29:49 +00:00
clientformat.py Remove dead code. 2016-06-07 15:07:11 +01:00
emailpusher.py Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
httppusher.py Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
mailer.py Only load jinja2 templates once 2017-05-22 17:48:58 +01:00
presentable_names.py Fix push room names for rooms with only an alias 2016-08-30 11:19:59 +01:00
push_rule_evaluator.py pep8 2017-10-10 15:53:34 +01:00
push_tools.py Don't convert to deferreds when not necessary 2017-03-30 14:14:36 +01:00
pusher.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
pusherpool.py Remove pushers when deleting access tokens 2017-11-29 16:44:35 +00:00
rulekinds.py copyrights 2016-01-07 04:26:29 +00:00