Skip to content

Commit

Permalink
[Hotfix][Zeta] Fix local mode can not generate logs (#3917)
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrantLucifer authored Jan 11, 2023
1 parent aeceb85 commit 6d85aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ JAVA_OPTS="${JAVA_OPTS} -Dhazelcast.config=${HAZELCAST_CONFIG}"
if [ -e "${CONF_DIR}/log4j2_client.properties" ]; then
JAVA_OPTS="${JAVA_OPTS} -Dlog4j2.configurationFile=${CONF_DIR}/log4j2_client.properties"
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.path=${APP_DIR}/logs"
if [[ $args == *" -e local"* || $args == *" --deploy-mode local"* ]]; then
if [[ $args == *" -m local"* || $args == *" --master local"* ]]; then
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.file_name=seatunnel-starter-client-$((`date '+%s'`*1000+`date '+%N'`/1000000))"
else
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.file_name=seatunnel-starter-client"
Expand Down

0 comments on commit 6d85aad

Please sign in to comment.