logapi: cat output file instead of printing
This avoids globbing together multiple lines in the log, if you happen to specify LOGAPI_DEBUG because you want to see it. Signed-off-by: Will Andrews <will@firepipe.net> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #11515
This commit is contained in:
parent
a4134da2b2
commit
de1a6cc387
@ -105,7 +105,7 @@ function log_must_retry
|
||||
" assertion failure exited $status"
|
||||
status=1
|
||||
else
|
||||
[[ -n $LOGAPI_DEBUG ]] && print $($out)
|
||||
[[ -n $LOGAPI_DEBUG ]] && cat $logfile
|
||||
_printsuccess "$@"
|
||||
fi
|
||||
break
|
||||
@ -244,7 +244,7 @@ function log_neg_expect
|
||||
fi
|
||||
|
||||
if (( $ret == 0 )); then
|
||||
[[ -n $LOGAPI_DEBUG ]] && print $($out)
|
||||
[[ -n $LOGAPI_DEBUG ]] && cat $logfile
|
||||
_printsuccess "$@" "exited $status"
|
||||
fi
|
||||
fi
|
||||
@ -284,7 +284,7 @@ function log_pos
|
||||
" exited $status"
|
||||
status=1
|
||||
else
|
||||
[[ -n $LOGAPI_DEBUG ]] && print $($out)
|
||||
[[ -n $LOGAPI_DEBUG ]] && cat $logfile
|
||||
_printsuccess "$@"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user