This is an automated email from the ASF dual-hosted git repository.

fanjia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-web.git


The following commit(s) were added to refs/heads/main by this push:
     new 53a89aab [Bug] [Seatunnel-web] Create log directory if it does not 
exist. (#187)
53a89aab is described below

commit 53a89aabb4717ca9ad69b5f3ea7a40d48722eefb
Author: Mohammad Arshad <[email protected]>
AuthorDate: Mon Aug 19 07:22:01 2024 +0530

    [Bug] [Seatunnel-web] Create log directory if it does not exist. (#187)
---
 .../seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh            | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh 
b/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh
index 78f38556..d73b0637 100755
--- a/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh
+++ b/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh
@@ -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}"

Reply via email to