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

Commit

Permalink
Include the loglevel of synapse.app.homeserver in phone home stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Oct 6, 2020
1 parent a024461 commit 45293e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/8477.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include the log level in the phone home stats.
6 changes: 6 additions & 0 deletions synapse/app/phone_stats_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ async def phone_stats_home(hs, stats, stats_process=_stats_process):
stats["database_engine"] = hs.get_datastore().db_pool.engine.module.__name__
stats["database_server_version"] = hs.get_datastore().db_pool.engine.server_version

#
# Logging configuration
#
log_level = logger.getEffectiveLevel()
stats["log_level"] = logging.getLevelName(log_level)

logger.info("Reporting stats to %s: %s" % (hs.config.report_stats_endpoint, stats))
try:
await hs.get_proxied_http_client().put_json(
Expand Down

0 comments on commit 45293e3

Please sign in to comment.