From afcbde6f14c5ef30cf0d8538bb9f35dd8a689ac7 Mon Sep 17 00:00:00 2001 From: will Farrell Date: Wed, 21 Jun 2017 13:13:33 -0600 Subject: [PATCH] change log format --- docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index db579d8..a658a4f 100755 --- a/docker-entrypoint.sh +++ b/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