mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 15:13:31 +00:00
Make broken hack more obvious when it happens
This commit is contained in:
1 parent
04084ae224
commit
b849bed8f9
1 file changed
+1
-1
@@ -96,7 +96,7 @@ def _set_prometheus_client_use_created_metrics(new_value: bool) -> None:
|
||||
if hasattr(prometheus_client.metrics, "_use_created"):
|
||||
prometheus_client.metrics._use_created = new_value
|
||||
else:
|
||||
logger.error(
|
||||
raise Exception(
|
||||
"Can't disable `_created` metrics in prometheus_client (brittle hack broken?)"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user