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
1 changed files with 8 additions and 4 deletions

View File

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