Skip to content

Commit 02d84d8

Browse files
Add keys to skip logging
1 parent 7834a92 commit 02d84d8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/imcflibs/imagej/misc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,11 @@ def save_script_parameters(destination, save_file_name="script_parameters.txt"):
726726
out_path = os.path.join(destination, save_file_name)
727727

728728
# Write the parameters to output file
729+
skip_keys = ["PASSWORD", "USERNAME", "SJLOG", "COMMAND", "RM"]
729730
with open(out_path, "w") as f:
730731
for key in inputs.keySet():
732+
if any(s in key.upper() for s in skip_keys):
733+
continue
731734
val = inputs.get(key)
732735
f.write("%s: %s\n" % (key, str(val)))
733736

0 commit comments

Comments
 (0)