]> git.aero2k.de Git - urlbot-v3.git/commitdiff
properly log searx retries
authorThorsten <mail@aero2k.de>
Sun, 24 Apr 2022 10:47:00 +0000 (12:47 +0200)
committerThorsten <mail@aero2k.de>
Sun, 24 Apr 2022 10:47:00 +0000 (12:47 +0200)
distbot/plugins/searx.py

index c7bffa82265ad440f4b178a0d9d1bf19f2d67217..a379517f13b1bcfb2c6c0115850bb8900c2f332e 100644 (file)
@@ -55,7 +55,7 @@ class Searx(Worker):
         return searxes
 
     @retry(ExceptionToCheck=(ConnectionError, BrokenSearxError, RateLimitingError, json.JSONDecodeError, SSLError),
-           tries=10, delay=1, backoff=1.1)
+           tries=10, delay=1, backoff=1.1, logger=logger)
     def searx(self, text):
         if not self.search_list:
             self.search_list = self.fetch_all_searx_engines()