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

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

Merged
merged 1 commit into from
Nov 28, 2022

Commits on Nov 28, 2022

  1. Fix logging context warnings due to common usage metrics setup

    `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: Sean Quah <[email protected]>
    Sean Quah committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    54a0dc1 View commit details
    Browse the repository at this point in the history