diff options
author | Sorunome <mail@sorunome.de> | 2019-09-12 12:24:57 +0200 |
---|---|---|
committer | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-09-12 11:24:57 +0100 |
commit | dd2e5b0038dbe9812775e5943e5bccf550d7468a (patch) | |
tree | ad1434e1da092612d4625caf99adc17ff59d5d36 /synapse/app | |
parent | Blow up config if opentracing is missing (#5985) (diff) | |
download | synapse-dd2e5b0038dbe9812775e5943e5bccf550d7468a.tar.xz |
add report_stats_endpoint config option (#6012)
This PR adds the optional `report_stats_endpoint` to configure where stats are reported to, if enabled.
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/homeserver.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 04f1ed14f3..774326dff9 100644 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -561,10 +561,12 @@ def run(hs): stats["database_engine"] = hs.get_datastore().database_engine_name stats["database_server_version"] = hs.get_datastore().get_server_version() - logger.info("Reporting stats to matrix.org: %s" % (stats,)) + logger.info( + "Reporting stats to %s: %s" % (hs.config.report_stats_endpoint, stats) + ) try: yield hs.get_simple_http_client().put_json( - "https://matrix.org/report-usage-stats/push", stats + hs.config.report_stats_endpoint, stats ) except Exception as e: logger.warn("Error reporting stats: %s", e) |