mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 12:52:04 +00: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