Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
nit logging change
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin Schnabel committed Nov 12, 2018
1 parent 4d84a38 commit 2c9e2bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
log() {
if [ "${GAMEON_LOG_FORMAT}" == "json" ]; then
# This needs to be escaped using jq
echo '{"message":"'$1'"}'
echo '{"message":"'$@'"}'
else
echo $1
echo $@
fi
}

if [ "$ETCDCTL_ENDPOINT" != "" ]; then
log Setting up etcd...
log "Setting up etcd..."
etcdctl --debug ls
RC=$?
while [ $RC -ne 0 ]; do
Expand Down Expand Up @@ -43,4 +43,5 @@ else
sed -i -e "s/access\.log .*$/access.log combined;/" /etc/nginx/nginx.conf
fi

log "Init complete. Starting nginx"
exec nginx

0 comments on commit 2c9e2bd

Please sign in to comment.