Skip to content

Commit 57d60f2

Browse files
benoit-ctygithub-advanced-security[bot]
authored andcommitted
Potential fix for code scanning alert no. 44: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b8b2288 commit 57d60f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

codecarbon/core/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def normalize_gpu_ids(
9999
normalized_gpu_ids.extend(parse_gpu_ids(gpu_id))
100100
else:
101101
logger.warning(
102-
f"Ignoring invalid gpu_id entry '{gpu_id}' ({type(gpu_id).__name__}); expected int or str."
102+
"Ignoring invalid gpu_id entry of type %s; expected int or str.",
103+
type(gpu_id).__name__,
103104
)
104105
return normalized_gpu_ids
105106

0 commit comments

Comments
 (0)