Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Disable logcontext warning
Browse files Browse the repository at this point in the history
Temporary workaround to #3518 while we release 0.33.0.
  • Loading branch information
richvdh committed Jul 19, 2018
1 parent 21d3b87 commit 00bc979
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions synapse/storage/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,10 @@ def runWithConnection(self, func, *args, **kwargs):
"""
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()
Expand Down

0 comments on commit 00bc979

Please sign in to comment.