Pārlūkot izejas kodu

[enh] log redirects

Adam Tauber 10 gadus atpakaļ
vecāks
revīzija
bf09daa31d
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      searx/search.py

+ 1
- 0
searx/search.py Parādīt failu

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