Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[enh] log redirects

Adam Tauberbf09daa31d8d
diff --git a/searx/search.py b/searx/search.py
index 476b92197..83163d1e5 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -90,6 +90,7 @@ def make_callback(engine_name, results_queue, callback, params):
# check if redirect comparing to the True value,
# because resp can be a Mock object, and any attribut name returns something.
if response.is_redirect is True:
+ logger.debug('{0} redirect on: {1}'.format(engine_name, response))
return
response.search_params = params