mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
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:
parent
727f4ec24b
commit
c5adc09127
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user