Merge pull request #2 from IanMReed/master

Fixed month in log entries used for logfile or stdout - was printing mins
This commit is contained in:
tengel 2024-03-20 09:32:36 -05:00
commit 57bdecad26

View file

@ -127,11 +127,11 @@ logmsg () {
echo "${LMSG}" | logger -t petrified
fi
if (( ${USE_STDOUT} == 1 )); then
DTS=$(date +"%Y-%M-%d %H:%M:%S")
DTS=$(date +"%Y-%m-%d %H:%M:%S")
echo "[${DTS}] [petrified] ${LMSG}"
fi
if (( ${USE_LOGFILE} == 1 )); then
DTS=$(date +"%Y-%M-%d %H:%M:%S")
DTS=$(date +"%Y-%m-%d %H:%M:%S")
echo "[${DTS}] [petrified] ${LMSG}" >> "${PET_LOG}"
fi
return