mirror of
https://github.com/searxng/searxng.git
synced 2025-07-14 00:39:18 +02:00
[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.
This commit is contained in:
parent
7acd7ffc02
commit
c27fef1cde
3 changed files with 19 additions and 14 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue