Commit 2bfb5ff6 authored by Troy Engel's avatar Troy Engel

Merge pull request #2 from IanMReed/master

Fixed month in log entries used for logfile or stdout - was printing mins
parents eaa9c0b3 f1a5c511
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment