mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 16:50:20 +00:00
Merge pull request #3561 from matrix-org/rav/disable_logcontext_warning
Disable logcontext warning
This commit is contained in:
commit
2de3d994f3
2 changed files with 5 additions and 3 deletions
1
changelog.d/3561.bugfix
Normal file
1
changelog.d/3561.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Disable a noisy warning about logcontexts
|
|
@ -343,9 +343,10 @@ class SQLBaseStore(object):
|
||||||
"""
|
"""
|
||||||
parent_context = LoggingContext.current_context()
|
parent_context = LoggingContext.current_context()
|
||||||
if parent_context == LoggingContext.sentinel:
|
if parent_context == LoggingContext.sentinel:
|
||||||
logger.warn(
|
# warning disabled for 0.33.0 release; proper fixes will land imminently.
|
||||||
"Running db txn from sentinel context: metrics will be lost",
|
# logger.warn(
|
||||||
)
|
# "Running db txn from sentinel context: metrics will be lost",
|
||||||
|
# )
|
||||||
parent_context = None
|
parent_context = None
|
||||||
|
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
Loading…
Reference in a new issue