mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 17:34:11 -04:00
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:
parent
7ec9be9c53
commit
7639c3d9e5
2 changed files with 70 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue