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:
commit
57bdecad26
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue