Skip to content

Commit

Permalink
[Bug] [Seatunnel-web] Create log directory if it does not exist. (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadmohammad authored Aug 19, 2024
1 parent f987ff3 commit 53a89aa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ start() {
check

LOGDIR=${WORKDIR}/../logs
# Create the log directory if it does not exist
if [ ! -d "$LOGDIR" ]; then
mkdir -p "$LOGDIR"
fi
JAVA_OPTS="${JAVA_OPTS} -server -Xms1g -Xmx1g -Xmn512m -XX:+PrintGCDetails -Xloggc:${LOGDIR}/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof"
SPRING_OPTS="${SPRING_OPTS} -Dspring.config.name=application.yml -Dspring.config.location=classpath:application.yml"
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel-web.logs.path=${LOGDIR}"
Expand Down

0 comments on commit 53a89aa

Please sign in to comment.