diff options
author | Dan Timoney <dtimoney@att.com> | 2020-04-03 15:50:53 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-05-05 18:05:23 +0000 |
commit | 776e2a122cd04a8c1348b97d859ee999da219444 (patch) | |
tree | faf2be25be5203f800e5e850af748e0a4112ecfc /ms/neng | |
parent | c1eae0326ae1b59d93373e4f9149423837c33f88 (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>
(cherry picked from commit c1a4da3e1e528cf8becd0c090939b54689e7295d)
Diffstat (limited to 'ms/neng')
-rw-r--r-- | ms/neng/src/main/docker/startService.sh | 2 |
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) |