Cleaned up some logging.
This commit is contained in:
parent
d0a2413f64
commit
4b45db3169
10
ppss.sh
10
ppss.sh
|
@ -459,9 +459,9 @@ init_vars () {
|
||||||
rm $LOGFILE
|
rm $LOGFILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log DEBUG "---------------------------------------------------------"
|
log INFO "---------------------------------------------------------"
|
||||||
log INFO "$SCRIPT_NAME version $SCRIPT_VERSION"
|
log INFO "$SCRIPT_NAME version $SCRIPT_VERSION"
|
||||||
log DEBUG "---------------------------------------------------------"
|
log INDO "---------------------------------------------------------"
|
||||||
log INFO "Hostname: $HOSTNAME"
|
log INFO "Hostname: $HOSTNAME"
|
||||||
|
|
||||||
if [ -z "$COMMAND" ]
|
if [ -z "$COMMAND" ]
|
||||||
|
@ -492,15 +492,15 @@ init_vars () {
|
||||||
MAX_NO_OF_RUNNING_JOBS=`get_no_of_cpus $HYPERTHREADING`
|
MAX_NO_OF_RUNNING_JOBS=`get_no_of_cpus $HYPERTHREADING`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log DEBUG "---------------------------------------------------------"
|
log INFO "---------------------------------------------------------"
|
||||||
|
|
||||||
does_file_exist "$JOB_LOG_DIR"
|
does_file_exist "$JOB_LOG_DIR"
|
||||||
if [ ! "$?" == "0" ]
|
if [ ! "$?" == "0" ]
|
||||||
then
|
then
|
||||||
log INFO "Job log directory $JOB_lOG_DIR does not exist. Creating."
|
log DEBUG "Job log directory $JOB_lOG_DIR does not exist. Creating."
|
||||||
exec_cmd "mkdir $JOB_LOG_DIR"
|
exec_cmd "mkdir $JOB_LOG_DIR"
|
||||||
else
|
else
|
||||||
log INFO "Job log directory $JOB_LOG_DIR exists, skipping items for which logs are present."
|
log DEBUG "Job log directory $JOB_LOG_DIR exists."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
does_file_exist "$ITEM_LOCK_DIR"
|
does_file_exist "$ITEM_LOCK_DIR"
|
||||||
|
|
Loading…
Reference in New Issue