anonymousland-synapse/synapse/util
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
..
caches Merge pull request #3093 from matrix-org/rav/response_cache_wrap 2018-04-20 11:31:17 +01:00
__init__.py fix vars named l 2017-10-23 15:56:38 +01:00
async.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00
distributor.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00
file_consumer.py Replace Queue with six.moves.queue 2018-04-16 00:46:21 +02:00
frozenutils.py Use static JSONEncoders 2018-03-29 23:13:33 +01:00
httpresourcetree.py 404 correctly on missing paths via NoResource 2018-03-23 10:32:50 +00:00
jsonobject.py Handle sending events and device messages over federation 2016-11-17 15:48:04 +00:00
logcontext.py Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
logformatter.py logformatter: fix AttributeError 2017-10-11 17:26:17 +01:00
logutils.py Fix up logcontexts 2016-02-08 14:26:45 +00:00
manhole.py Add a metrics listener and a ssh listener to the pusher 2016-04-25 17:34:25 +01:00
metrics.py Revert "Merge pull request #3066 from matrix-org/rav/remove_redundant_metrics" 2018-04-09 12:59:12 +01:00
module_loader.py pep8 2017-09-26 19:21:41 +01:00
msisdn.py Support registration / login with phone number 2017-03-13 17:27:51 +00:00
ratelimitutils.py Remove some unused functions (#711) 2016-04-08 14:01:56 +01:00
retryutils.py Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
rlimit.py Move the versionstring code out of app.homeserver into util 2016-04-11 14:57:09 +01:00
stringutils.py Reduce size of joined_user cache 2017-04-25 14:38:51 +01:00
threepids.py fix PR nitpicking 2018-01-19 18:23:45 +00:00
versionstring.py Add federation /version API 2016-08-05 16:36:07 +01:00
wheel_timer.py fix vars named l 2017-10-23 15:56:38 +01:00