mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Use a common date/time format for log entries
This commit is contained in:
parent
e20ef13b48
commit
7725ce6cc8
1 changed files with 1 additions and 1 deletions
|
|
@ -1270,7 +1270,7 @@
|
|||
################################################################################
|
||||
|
||||
LogText() {
|
||||
if [ ! "${LOGFILE}" = "" ]; then CDATE=`date "+[%H:%M:%S]"`; echo "${CDATE} $1" >> ${LOGFILE}; fi
|
||||
if [ ! "${LOGFILE}" = "" ]; then CDATE=`date "+%Y-%m-%d %H:%M:%S"`; echo "${CDATE} $1" >> ${LOGFILE}; fi
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue