summaryrefslogtreecommitdiff
path: root/searx/settings_defaults.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-12-26 22:44:46 +0100
committerAlexandre Flament <alex@al-f.net>2022-01-05 19:03:04 +0100
commit2134703b4bb9847d0efeac3b28ceefb7d1f26271 (patch)
tree054d617ef416a552749cf1cf7761d45f12f348b3 /searx/settings_defaults.py
parenta7199bc08552fbd3a8cf8b257aeded5b26591afb (diff)
downloadsearxng-2134703b4bb9847d0efeac3b28ceefb7d1f26271.tar.gz
searxng-2134703b4bb9847d0efeac3b28ceefb7d1f26271.zip
[enh] settings.yml: implement general.enable_metrics
* allow not to record metrics (response time, etc...) * this commit doesn't change the UI. If the metrics are disabled /stats and /stats/errors will return empty response. in /preferences, the columns response time and reliability will be empty.
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r--searx/settings_defaults.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
index 9c4711bfc..95d482a0e 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -142,6 +142,7 @@ SCHEMA = {
'debug': SettingsValue(bool, False, 'SEARXNG_DEBUG'),
'instance_name': SettingsValue(str, 'SearXNG'),
'contact_url': SettingsValue((None, False, str), None),
+ 'enable_metrics': SettingsValue(bool, True),
},
'brand': {
'issue_url': SettingsValue(str, 'https://github.com/searxng/searxng/issues'),