From ddba9593958a2b45458b5af3545c23019d723431 Mon Sep 17 00:00:00 2001 From: James Xu Date: Mon, 16 Sep 2024 13:50:26 -0400 Subject: [PATCH] SWDEV-478077 - logging.warn used instead of logging.warning - logging.warn() is deprecated in favour of logging.warning() - for some reason, this is the only place in all of rocm_smi.py that uses logging.warn() as pointed out on github https://github.com/ROCm/rocm_smi_lib/issues/187 Change-Id: Ie1e4a0ea16b996fbed2e902c8edfe68087a5a5fa [ROCm/rocm_smi_lib commit: fe6a49d186e2ac818048972ceeed09b953bfbb8a] --- projects/rocm-smi-lib/python_smi_tools/rocm_smi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py index 9f046a5339..fa7d2a2323 100755 --- a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py +++ b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py @@ -4287,7 +4287,7 @@ if __name__ == '__main__': if not JSON_DATA['card' + str(device)]: JSON_DATA.pop('card' + str(device)) if not JSON_DATA: - logging.warn("No JSON data to report") + logging.warning("No JSON data to report") sys.exit(RETCODE) if not args.csv: