diff options
author | Erik Johnston <erik@matrix.org> | 2019-09-27 15:11:14 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-09-27 15:11:14 +0100 |
commit | 132279a46fd76de8f767bc6977192900c450fec9 (patch) | |
tree | 3487a0848149bce40e1016d1e48c298ee15b1aba /synapse/__init__.py | |
parent | Move lookup-related functions from RoomMemberHandler to IdentityHandler (#5978) (diff) | |
download | synapse-132279a46fd76de8f767bc6977192900c450fec9.tar.xz |
Patch inlinecallbacks for log contexts
Diffstat (limited to 'synapse/__init__.py')
-rw-r--r-- | synapse/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/__init__.py b/synapse/__init__.py index ddfe9ec542..4401fd52f0 100644 --- a/synapse/__init__.py +++ b/synapse/__init__.py @@ -17,8 +17,11 @@ """ This is a reference implementation of a Matrix home server. """ +import os import sys +from tests.patch_inline_callbacks import do_patch + # Check that we're not running on an unsupported Python version. if sys.version_info < (3, 5): print("Synapse requires Python 3.5 or above.") @@ -36,3 +39,6 @@ except ImportError: pass __version__ = "1.4.0rc1" + +if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)): + do_patch() |