浏览代码

[enh] log redirects

Adam Tauber 10 年前
父节点
当前提交
bf09daa31d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      searx/search.py

+ 1
- 0
searx/search.py 查看文件

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