mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
use logger.warning
logger.warn() is depricated. logger.warning is already being used in some files.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user