summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-09-19 02:40:04 +1000
committerGitHub <noreply@github.com>2018-09-19 02:40:04 +1000
commitc600886d47b0251ae67a46f379208374a7a12fc4 (patch)
tree126ed24ee6b17b932e3ae5bac7370a2a1a7b8558 /synapse
parentMerge pull request #3879 from matrix-org/matthew/fix-autojoin (diff)
parentCreate 3894.feature (diff)
downloadsynapse-c600886d47b0251ae67a46f379208374a7a12fc4.tar.xz
Merge pull request #3894 from matrix-org/hs/phone_home_py_version
Add python_version phone home stat
Diffstat (limited to 'synapse')
-rwxr-xr-xsynapse/app/homeserver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index ac97e19649..3241ded188 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -457,6 +457,10 @@ def run(hs):
         stats["homeserver"] = hs.config.server_name
         stats["timestamp"] = now
         stats["uptime_seconds"] = uptime
+        version = sys.version_info
+        stats["python_version"] = "{}.{}.{}".format(
+            version.major, version.minor, version.micro
+        )
         stats["total_users"] = yield hs.get_datastore().count_all_users()
 
         total_nonbridged_users = yield hs.get_datastore().count_nonbridged_users()