summary refs log tree commit diff
path: root/synapse/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/__init__.py')
-rw-r--r--synapse/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/__init__.py b/synapse/__init__.py
index 2d52d26af5..1055f54e00 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.0"
+
+if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
+    do_patch()