diff options
author | Alexandre Flament <alex@al-f.net> | 2021-04-17 18:15:50 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-04-21 16:24:46 +0200 |
commit | c27fef1cdeeebcc17e21dbdc3dafad00de08a2ce (patch) | |
tree | 06cf169c03f07cfadd4462c988c33a2f63703f51 /searx/results.py | |
parent | 7acd7ffc02d14d175ec2a99ba984e47d8cb65d7d (diff) | |
download | searxng-c27fef1cdeeebcc17e21dbdc3dafad00de08a2ce.tar.gz searxng-c27fef1cdeeebcc17e21dbdc3dafad00de08a2ce.zip |
[mod] metrics: add secondary parameter
Some error won't stop the engine:
* additional HTTP redirects for example
* some invalid results
secondary=True allows to flag these errors as not important.
Diffstat (limited to 'searx/results.py')
-rw-r--r-- | searx/results.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/results.py b/searx/results.py index 41c150803..a1c1d8527 100644 --- a/searx/results.py +++ b/searx/results.py @@ -196,7 +196,7 @@ class ResultContainer: if len(error_msgs) > 0: for msg in error_msgs: - count_error(engine_name, 'some results are invalids: ' + msg) + count_error(engine_name, 'some results are invalids: ' + msg, secondary=True) if engine_name in engines: histogram_observe(standard_result_count, 'engine', engine_name, 'result', 'count') |