diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-09-19 02:40:04 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 02:40:04 +1000 |
commit | c600886d47b0251ae67a46f379208374a7a12fc4 (patch) | |
tree | 126ed24ee6b17b932e3ae5bac7370a2a1a7b8558 | |
parent | Merge pull request #3879 from matrix-org/matthew/fix-autojoin (diff) | |
parent | Create 3894.feature (diff) | |
download | synapse-c600886d47b0251ae67a46f379208374a7a12fc4.tar.xz |
Merge pull request #3894 from matrix-org/hs/phone_home_py_version
Add python_version phone home stat
-rw-r--r-- | changelog.d/3894.feature | 1 | ||||
-rwxr-xr-x | synapse/app/homeserver.py | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.d/3894.feature b/changelog.d/3894.feature new file mode 100644 index 0000000000..1ed0cccdb2 --- /dev/null +++ b/changelog.d/3894.feature @@ -0,0 +1 @@ +Report "python_version" in the phone home stats 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() |