File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ def arg_parser() -> argparse.ArgumentParser:
4444 "--log-dir" ,
4545 type = str ,
4646 default = "" ,
47- help = "Log your tools stdout/stderr to this location outside of container" ,
47+ help = "Log your tools stdout/stderr to this location outside of container "
48+ "This will only log stdout/stderr if you specify stdout/stderr in their respective fields or capture it as an output" ,
4849 )
4950
5051 parser .add_argument (
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ def make_tool_notimpl(
5656
5757default_make_tool = make_tool_notimpl
5858
59+
5960def log_handler (
6061 outdir : str ,
6162 base_path_logs : str ,
@@ -72,15 +73,11 @@ def log_handler(
7273 shutil .copy2 (stderr_path , new_stderr_path )
7374
7475
75- def set_log_dir (
76- outdir : str ,
77- log_dir : str ,
78- subdir_name : str
79- ) -> str :
76+ def set_log_dir (outdir : str , log_dir : str , subdir_name : str ) -> str :
8077 """Default handler for setting the log directory."""
8178 if log_dir == "" :
82- return outdir
83- else :
79+ return outdir
80+ else :
8481 return log_dir + "/" + subdir_name
8582
8683
Original file line number Diff line number Diff line change @@ -226,7 +226,9 @@ def is_streamable(file: str) -> bool:
226226 indent = 4 ,
227227 ),
228228 )
229- self .base_path_logs = runtimeContext .set_log_dir (self .outdir , runtimeContext .log_dir , self .name )
229+ self .base_path_logs = runtimeContext .set_log_dir (
230+ self .outdir , runtimeContext .log_dir , self .name
231+ )
230232
231233 def _execute (
232234 self ,
You can’t perform that action at this time.
0 commit comments