summary refs log tree commit diff
path: root/synapse/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-10 14:30:51 +0100
committerErik Johnston <erik@matrix.org>2019-10-10 14:30:51 +0100
commit8bc529c04df64f610ae8d3911b671d363b52737c (patch)
tree9847e697839c844753ca0c884794bab527a0d36e /synapse/__init__.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into erikj/disable_sq... (diff)
parentMerge pull request #6191 from matrix-org/rav/fix_packaging (diff)
downloadsynapse-8bc529c04df64f610ae8d3911b671d363b52737c.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/disable_sql_bytes
Diffstat (limited to 'synapse/__init__.py')
-rw-r--r--synapse/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/__init__.py b/synapse/__init__.py

index 2d52d26af5..56df3f5ac6 100644 --- a/synapse/__init__.py +++ b/synapse/__init__.py
@@ -17,6 +17,7 @@ """ This is a reference implementation of a Matrix home server. """ +import os import sys # Check that we're not running on an unsupported Python version. @@ -36,3 +37,10 @@ except ImportError: pass __version__ = "1.4.0" + +if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)): + # We import here so that we don't have to install a bunch of deps when + # running the packaging tox test. + from synapse.util.patch_inline_callbacks import do_patch + + do_patch()