synapse-product/synapse
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
..
api Use six.itervalues in some places 2018-04-15 20:39:43 +02:00
app Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
appservice Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
config Merge pull request #3074 from NotAFile/fix-py3-prints 2018-04-09 23:44:41 +01:00
crypto Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
events Remove context.push_actions 2018-02-15 15:47:06 +00:00
federation Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
groups Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
handlers Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
http Merge pull request #3061 from NotAFile/add-some-byte-strings 2018-04-09 23:54:05 +01:00
metrics s/list/tuple 2018-04-12 11:19:04 +01:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
replication Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
rest Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
static/client
storage Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
__init__.py Bump version and update changelog 2018-04-24 15:33:22 +01:00
event_auth.py Fix templating error with unban permission message 2018-01-07 19:52:58 -07:00
notifier.py Improve exception handling for background processes 2018-04-27 11:07:40 +01:00
python_dependencies.py Revert "Use sortedcontainers instead of blist" 2018-04-13 11:16:43 +01:00
server.py Split RoomMemberWorkerHandler to separate file 2018-03-14 11:41:45 +00:00
server.pyi Factor out resolve_state_groups to a separate handler 2018-02-01 12:40:04 +00:00
state.py Measure time it takes to calculate state group ID 2018-03-28 11:03:52 +01:00
types.py In DomainSpecificString, override __repr__ in addition to __str__ 2018-04-10 11:35:29 +02:00
visibility.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00