0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-07-01 08:58:19 +02:00

Disable logcontext warning

Temporary workaround to #3518 while we release 0.33.0.
This commit is contained in:
Richard van der Hoff 2018-07-19 10:51:15 +01:00
parent 21d3b87943
commit 00bc979137

View file

@ -343,9 +343,10 @@ class SQLBaseStore(object):
"""
parent_context = LoggingContext.current_context()
if parent_context == LoggingContext.sentinel:
logger.warn(
"Running db txn from sentinel context: metrics will be lost",
)
# warning disabled for 0.33.0 release; proper fixes will land imminently.
# logger.warn(
# "Running db txn from sentinel context: metrics will be lost",
# )
parent_context = None
start_time = time.time()