From 007f326c348289e15f2477ca2dd552c8196a45d5 Mon Sep 17 00:00:00 2001 From: Ori Messinger Date: Tue, 25 Jan 2022 11:47:52 -0500 Subject: [PATCH] ROCm SMI CLI: Hide Failed Command Warning The purpose of this patch is to hide 'One or more commands failed.' from showing up, unless an appropriate log level has been set. You can set the loglevel in the CLI with: --loglevel Signed-off-by: Ori Messinger Change-Id: Ifa309cd62596491a6ea5892e0752251f037fc0e9 --- python_smi_tools/rocm_smi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_smi_tools/rocm_smi.py b/python_smi_tools/rocm_smi.py index 6f51358b06..201f7f85aa 100755 --- a/python_smi_tools/rocm_smi.py +++ b/python_smi_tools/rocm_smi.py @@ -3223,7 +3223,7 @@ if __name__ == '__main__': print(devCsv) if RETCODE and not PRINT_JSON: - logging.warning(' \t\t One or more commands failed') + logging.debug(' \t\t One or more commands failed.') printLogSpacer(footerString) rsmi_ret_ok(rocmsmi.rsmi_shut_down())