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/engines | |
parent | 50cd7e2b03dbce50a41d39aad9521dab6d2ff246 (diff) | |
download | searxng-4900c091a6c88d58780d1ce8c4def0bd04c61270.tar.gz searxng-4900c091a6c88d58780d1ce8c4def0bd04c61270.zip |
use logger.warning
logger.warn() is depricated.
logger.warning is already being used in some files.
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index c9026f96d..a2db26816 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -95,7 +95,7 @@ def load_engine(engine_data: dict) -> Optional[Engine]: return None if engine_name.lower() != engine_name: - logger.warn('Engine name is not lowercase: "{}", converting to lowercase'.format(engine_name)) + logger.warning('Engine name is not lowercase: "{}", converting to lowercase'.format(engine_name)) engine_name = engine_name.lower() engine_data['name'] = engine_name |