File tree 3 files changed +9
-9
lines changed
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:
44
44
"--log-dir" ,
45
45
type = str ,
46
46
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" ,
48
49
)
49
50
50
51
parser .add_argument (
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ def make_tool_notimpl(
56
56
57
57
default_make_tool = make_tool_notimpl
58
58
59
+
59
60
def log_handler (
60
61
outdir : str ,
61
62
base_path_logs : str ,
@@ -72,15 +73,11 @@ def log_handler(
72
73
shutil .copy2 (stderr_path , new_stderr_path )
73
74
74
75
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 :
80
77
"""Default handler for setting the log directory."""
81
78
if log_dir == "" :
82
- return outdir
83
- else :
79
+ return outdir
80
+ else :
84
81
return log_dir + "/" + subdir_name
85
82
86
83
Original file line number Diff line number Diff line change @@ -226,7 +226,9 @@ def is_streamable(file: str) -> bool:
226
226
indent = 4 ,
227
227
),
228
228
)
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
+ )
230
232
231
233
def _execute (
232
234
self ,
You can’t perform that action at this time.
0 commit comments