diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-11-28 15:25:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 15:25:18 +0000 |
commit | d56f48038a07fd76d2ce08220a4061f85006bf3b (patch) | |
tree | cb822fd2d0199e12aa53176613efa27dd4c5d8e8 | |
parent | Include thread information when sending receipts over federation. (#14466) (diff) | |
download | synapse-d56f48038a07fd76d2ce08220a4061f85006bf3b.tar.xz |
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: Sean Quah <seanq@matrix.org>
-rw-r--r-- | changelog.d/14574.bugfix | 1 | ||||
-rw-r--r-- | synapse/metrics/common_usage_metrics.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/changelog.d/14574.bugfix b/changelog.d/14574.bugfix new file mode 100644 |