Only redact non-null values #505

This commit is contained in:
Paul Gauthier 2024-03-19 12:00:00 -07:00
parent a4d3d2b7a5
commit 7103029abb
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,4 @@
# Release history
### v0.26.1

View file

@ -551,7 +551,9 @@ def main(argv=None, input=None, output=None, force_git_root=None):
io.tool_output(show)
io.tool_output("Option settings:")
for arg, val in sorted(vars(args).items()):
io.tool_output(f" - {arg}: {scrub_sensitive_info(str(val))}")
if val:
val = scrub_sensitive_info(str(val))
io.tool_output(f" - {arg}: {val}")
io.tool_output(*map(scrub_sensitive_info, sys.argv), log_only=True)