Set date of break lines to similar format as normal log entries

This commit is contained in:
Michael Boelen 2016-07-11 10:32:00 +02:00
parent 77634d578c
commit 52317de56c

View File

@ -1411,7 +1411,7 @@
################################################################################ ################################################################################
LogText() { LogText() {
if [ ! "${LOGFILE}" = "" ]; then CDATE=`date "+%Y-%m-%d %H:%M:%S"`; echo "${CDATE} $1" >> ${LOGFILE}; fi if [ ! "${LOGFILE}" = "" ]; then CDATE=$(date "+%Y-%m-%d %H:%M:%S"); echo "${CDATE} $1" >> ${LOGFILE}; fi
} }
@ -1423,12 +1423,17 @@
LogTextBreak() { LogTextBreak() {
if [ ! "${LOGFILE}" = "" ]; then if [ ! "${LOGFILE}" = "" ]; then
CDATE=`date "+[%H:%M:%S]"` CDATE=$(date "+%Y-%m-%d %H:%M:%S")
echo "${CDATE} ===---------------------------------------------------------------===" >> ${LOGFILE} echo "${CDATE} ===---------------------------------------------------------------===" >> ${LOGFILE}
fi fi
} }
################################################################################
# Name : ParseProfiles()
# Description : Check file permissions and parse data from profiles
# Returns : <nothing>
################################################################################
ParseProfiles() { ParseProfiles() {
SafePerms ${INCLUDEDIR}/profiles SafePerms ${INCLUDEDIR}/profiles
@ -1436,10 +1441,9 @@
} }
################################################################################ ################################################################################
# Name : ParseTestValues() # Name : ParseTestValues()
# Description : Parse nginx configuration lines # Description : Parse values from a specific test
# Inputs : service (e.g. ssh) # Inputs : service (e.g. ssh)
# Returns : CHECK_VALUES_ARRAY # Returns : CHECK_VALUES_ARRAY
################################################################################ ################################################################################