Browse Source

change log format

dehydrated-hook-powerdns
will Farrell 8 years ago
parent
commit
afcbde6f14
  1. 4
      docker-entrypoint.sh

4
docker-entrypoint.sh

@ -9,8 +9,8 @@ if [ "${LOG}" == "TRUE" ]; then
touch ${LOG_FILE}
UUID=$(cat /proc/sys/kernel/random/uuid)
exec > >(read message; echo "$(date -Iseconds) ${UUID} [info] $message" | tee -a ${LOG_FILE} )
exec 2> >(read message; echo "$(date -Iseconds) ${UUID} [error] $message" | tee -a ${LOG_FILE} >&2)
exec > >(read message; echo "${UUID} $(date -Iseconds) [info] $message" | tee -a ${LOG_FILE} )
exec 2> >(read message; echo "${UUID} $(date -Iseconds) [error] $message" | tee -a ${LOG_FILE} >&2)
fi
if [ "${LE_ENV}" == 'production' ]; then

Loading…
Cancel
Save