File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -832,23 +832,35 @@ def save_script_parameters(
832832 # Keys to skip explicitly
833833 skip_keys = ["USERNAME" , "SJLOG" , "COMMAND" , "RM" ]
834834
835+ saved = skipped = passwords = 0
835836 with open (out_path , "w" ) as f :
836837 for item in script_info .inputs ():
837838 key = item .getName ()
838839
839840 # Skip if any keys are in the skip list
840841 if any (skip in key .upper () for skip in skip_keys ):
842+ log .info ("Skipping parameter from skip-list: %s" , key )
843+ skipped += 1
841844 continue
842845
843846 # Skip if parameter is declared with password style
844847 if _is_password_style (item ):
848+ log .info ("Skipping password-style parameter: %s" , key )
849+ passwords += 1
845850 continue
846851
847852 # TODO: discuss if this approach is fine within Fiji/Jython
848853 try :
849854 val = inputs .get (key )
850855 f .write ("%s: %s\n " % (key , str (val )))
856+ saved += 1
851857 except :
852858 pass
853859
854- timed_log ("Saved script parameters to: %s" % out_path )
860+ log .info (
861+ "Saved %i parameters (skipped %i password-style and %i others)." ,
862+ saved ,
863+ passwords ,
864+ skipped ,
865+ )
866+ timed_log ("Saved %i script parameters to: %s" % (saved , out_path ))
You can’t perform that action at this time.
0 commit comments