use logger.warning

logger.warn() is depricated.
logger.warning is already being used in some files.
This commit is contained in:
pankaj 2023-05-19 19:35:29 +05:30
parent 50cd7e2b03
commit 4900c091a6
3 changed files with 3 additions and 3 deletions

View file

@ -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: