summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-10-13 17:13:04 +0100
committerMark Haines <mark.haines@matrix.org>2015-10-13 17:13:04 +0100
commit7639c3d9e53cdb6222df6a8e1b12bc2a40612367 (patch)
treea988502f3f4f1c35d36977e52e96c27e641a5745 /synapse/app/homeserver.py
parentMerge pull request #300 from matrix-org/erikj/store_engine (diff)
downloadsynapse-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/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py2
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