Skip to content
Snippets Groups Projects
Unverified Commit d56f4803 authored by Sean Quah's avatar Sean Quah Committed by GitHub
Browse files

Fix logging context warnings due to common usage metrics setup (#14574)


`setup()` is run under the sentinel context manager, so we wrap the
initial update in a background process. Before this change, Synapse
would log two warnings on startup:
    Starting db txn 'count_daily_users' from sentinel context
    Starting db connection from sentinel context: metrics will be lost

Signed-off-by: default avatarSean Quah <seanq@matrix.org>
parent d748bbc8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment