summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-04-03 15:50:53 -0400
committerDan Timoney <dtimoney@att.com>2020-04-03 15:50:53 -0400
commitc1a4da3e1e528cf8becd0c090939b54689e7295d (patch)
tree28777af6ae5d6d29ec7479207a416c13d56fe03c
parent7f0132ec5d305c4f63b75dee8108c498bf28755b (diff)
Log to stdout / stderr
Update start script for naming microservice to use tee to write to both stdout/stderr and to a log file. Change-Id: I762273475e116af1e35316e6b704554fd0a52a66 Issue-ID: CCSDK-2256 Signed-off-by: Dan Timoney <dtimoney@att.com>
-rw-r--r--ms/neng/src/main/docker/startService.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/neng/src/main/docker/startService.sh b/ms/neng/src/main/docker/startService.sh
index 814fc475..0064ca39 100644
--- a/ms/neng/src/main/docker/startService.sh
+++ b/ms/neng/src/main/docker/startService.sh
@@ -33,5 +33,5 @@ APP_ARGS=${APP_ARGS}" -Daai_auth="${AAI_AUTH}
APP_ARGS=${APP_ARGS}" -cp /opt/etc/config"
echo "APP_ARGS ="${APP_ARGS}
-java -Djava.security.egd=file:/dev/./urandom ${APP_ARGS} -Xms1024m -Xmx1024m -jar /app.jar --spring.config.location=/opt/etc/config/ > /tmp/app.out 2> /tmp/app.err
+java -Djava.security.egd=file:/dev/./urandom ${APP_ARGS} -Xms1024m -Xmx1024m -jar /app.jar --spring.config.location=/opt/etc/config/ >(tee -a /tmp/app.out) 2> >(tee -a /tmp/app.err >&2)