1
0
mirror of https://github.com/searxng/searxng.git synced 2024-07-02 15:30:42 +02:00

[enh] log redirects

This commit is contained in:
Adam Tauber 2015-02-13 13:02:37 +01:00
parent 3ff269c84c
commit bf09daa31d

View File

@ -90,6 +90,7 @@ def make_callback(engine_name, results_queue, callback, params):
# check if redirect comparing to the True value, # check if redirect comparing to the True value,
# because resp can be a Mock object, and any attribut name returns something. # because resp can be a Mock object, and any attribut name returns something.
if response.is_redirect is True: if response.is_redirect is True:
logger.debug('{0} redirect on: {1}'.format(engine_name, response))
return return
response.search_params = params response.search_params = params