mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
use logger.warning
logger.warn() is depricated. logger.warning is already being used in some files.
This commit is contained in:
parent
50cd7e2b03
commit
4900c091a6
3 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue