Merge "Replace SCREEN_LOGDIR with LOGDIR"

This commit is contained in:
Zuul 2017-10-20 05:28:00 +00:00 committed by Gerrit Code Review
commit 5318e3d04a

@ -38,8 +38,8 @@ function err() {
set +o xtrace
local msg="[ERROR] ${BASH_SOURCE[2]}:$1 $2"
echo $msg 1>&2;
if [[ -n ${SCREEN_LOGDIR} ]]; then
echo $msg >> "${SCREEN_LOGDIR}/error.log"
if [[ -n ${LOGDIR} ]]; then
echo $msg >> "${LOGDIR}/error.log"
fi
$errXTRACE
return $exitcode