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 /synapse | |
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
Diffstat (limited to 'synapse')
-rwxr-xr-x | synapse/app/homeserver.py | 4 |
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() |