diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-10-13 17:13:04 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-10-13 17:13:04 +0100 |
commit | 7639c3d9e53cdb6222df6a8e1b12bc2a40612367 (patch) | |
tree | a988502f3f4f1c35d36977e52e96c27e641a5745 /synapse/app | |
parent | Merge pull request #300 from matrix-org/erikj/store_engine (diff) | |
download | synapse-7639c3d9e53cdb6222df6a8e1b12bc2a40612367.tar.xz |
Bounce all deferreds through the reactor to make debugging easier.
If all deferreds wait a reactor tick before resolving then there is always a chance to add an errback to the deferred so that stacktraces get reported, rather than being discarded.
Diffstat (limited to 'synapse/app')
-rwxr-xr-x | synapse/app/homeserver.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index af53acb369..1c84242aa3 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -33,6 +33,8 @@ if __name__ == '__main__': sys.stderr.writelines(message) sys.exit(1) + from synapse.util.debug import debug_deferreds + debug_deferreds() from synapse.storage.engines import create_engine, IncorrectDatabaseSetup from synapse.storage import are_all_users_on_domain |