test: fix: resolve Python Logger warnings (#41827)

# PR Summary
This PR resolves the deprecation warnings of the `logger` library:
```python
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
```

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman 2025-06-03 09:47:51 +03:00 committed by GitHub
parent 727f4ec24b
commit c5adc09127
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ def get_chaos_info():
with open(constants.CHAOS_INFO_SAVE_PATH, 'r') as f:
chaos_info = json.load(f)
except Exception as e:
log.warn(f"get_chaos_info error: {e}")
log.warning(f"get_chaos_info error: {e}")
return None
return chaos_info

View File

@ -24,7 +24,7 @@ def get_all_collections():
data = json.load(f)
all_collections = data["all"]
except Exception as e:
log.warn(f"get_all_collections error: {e}")
log.warning(f"get_all_collections error: {e}")
return [None]
return all_collections

View File

@ -27,7 +27,7 @@ def get_all_collections():
data = json.load(f)
all_collections = data["all"]
except Exception as e:
log.warn(f"get_all_collections error: {e}")
log.warning(f"get_all_collections error: {e}")
return [None]
return all_collections