mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Merge pull request #3894 from matrix-org/hs/phone_home_py_version
Add python_version phone home stat
This commit is contained in:
commit
c600886d47
1
changelog.d/3894.feature
Normal file
1
changelog.d/3894.feature
Normal file
@ -0,0 +1 @@
|
||||
Report "python_version" in the phone home stats
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user