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.
This commit is contained in:
Mark Haines 2015-10-13 17:13:04 +01:00
parent 7ec9be9c53
commit 7639c3d9e5
2 changed files with 70 additions and 0 deletions

View file

@ -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