From c1a4da3e1e528cf8becd0c090939b54689e7295d Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Fri, 3 Apr 2020 15:50:53 -0400 Subject: 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 --- ms/neng/src/main/docker/startService.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ms') 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) -- cgit 1.2.3-korg