mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 15:39:00 +03:00
Phone home stats DB reporting should not assume a single DB.
This commit is contained in:
parent
0f3614f0f6
commit
663238aeb4
1 changed files with 4 additions and 2 deletions
|
@ -519,8 +519,10 @@ def phone_stats_home(hs, stats, stats_process=_stats_process):
|
||||||
# Database version
|
# Database version
|
||||||
#
|
#
|
||||||
|
|
||||||
stats["database_engine"] = hs.database_engine.module.__name__
|
# This only reports info about the *main* database.
|
||||||
stats["database_server_version"] = hs.database_engine.server_version
|
stats["database_engine"] = hs.get_datastore().db.engine.module.__name__
|
||||||
|
stats["database_server_version"] = hs.get_datastore().db.engine.server_version
|
||||||
|
|
||||||
logger.info("Reporting stats to %s: %s" % (hs.config.report_stats_endpoint, stats))
|
logger.info("Reporting stats to %s: %s" % (hs.config.report_stats_endpoint, stats))
|
||||||
try:
|
try:
|
||||||
yield hs.get_proxied_http_client().put_json(
|
yield hs.get_proxied_http_client().put_json(
|
||||||
|
|
Loading…
Reference in a new issue