Skip to content
Snippets Groups Projects
Commit c82bd739 authored by Matthew McGill's avatar Matthew McGill
Browse files

Fully supports logging

Former-commit-id: c1d9b7366f659fed03d8625b6fef98ee2d389215
parent 3f8e40ea
No related branches found
No related tags found
No related merge requests found
...@@ -613,16 +613,13 @@ perform_step() ...@@ -613,16 +613,13 @@ perform_step()
eval $command 2>&1 | tee $logfile eval $command 2>&1 | tee $logfile
command_exit=${PIPESTATUS[0]} # this funkiness gets the exit code of $command, not tee command_exit=${PIPESTATUS[0]} # this funkiness gets the exit code of $command, not tee
elif [[ ! -z "$VERBOSE" && $using_thanos -ne 0 ]]; then elif [[ ! -z "$VERBOSE" && $using_thanos -ne 0 ]]; then
eval $command 2>&1 # thanos.exe handles logging eval $command > $logfile 2>&1
command_exit=$? # display logs to stdout
# display each logfile
for this_step in $step for this_step in $step
do do
cat logs/$this_step.log cat logs/$this_step.log
done done
elif [[ $using_thanos -ne 0 ]]; then cat $logfile
eval $command > "logs/fill_in_cfg.log" 2>&1 # thanos.exe handles logging
command_exit=$?
else else
eval $command > $logfile 2>&1 eval $command > $logfile 2>&1
command_exit=$? command_exit=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment