diff options
author | pankaj <pankwings@gmail.com> | 2023-05-19 19:35:29 +0530 |
---|---|---|
committer | pankaj <pankwings@gmail.com> | 2023-05-19 19:35:29 +0530 |
commit | 4900c091a6c88d58780d1ce8c4def0bd04c61270 (patch) | |
tree | 233d96215b4dd01f2026971f87257be7761d84f9 /searx/search/processors | |
parent | 50cd7e2b03dbce50a41d39aad9521dab6d2ff246 (diff) |
use logger.warning
logger.warn() is depricated.
logger.warning is already being used in some files.
Diffstat (limited to 'searx/search/processors')
-rw-r--r-- | searx/search/processors/abstract.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search/processors/abstract.py b/searx/search/processors/abstract.py index 5f1882ca..ace730e5 100644 --- a/searx/search/processors/abstract.py +++ b/searx/search/processors/abstract.py @@ -74,7 +74,7 @@ class EngineProcessor(ABC): try: self.engine.init(get_engine_from_settings(self.engine_name)) except SearxEngineResponseException as exc: - self.logger.warn('Fail to initialize // %s', exc) + self.logger.warning('Fail to initialize // %s', exc) except Exception: # pylint: disable=broad-except self.logger.exception('Fail to initialize') else: |