diff --git a/dolphinscheduler-api/src/main/resources/application-api.properties b/dolphinscheduler-api/src/main/resources/application-api.properties index f956326cc5..71ef666e53 100644 --- a/dolphinscheduler-api/src/main/resources/application-api.properties +++ b/dolphinscheduler-api/src/main/resources/application-api.properties @@ -1,3 +1,5 @@ +logging.config=classpath:apiserver_logback.xml + # server port server.port=12345 @@ -17,3 +19,5 @@ spring.messages.encoding=UTF-8 #i18n classpath folder , file prefix messages, if have many files, use "," seperator spring.messages.basename=i18n/messages + + diff --git a/script/dolphinscheduler-daemon.sh b/script/dolphinscheduler-daemon.sh index 45898a013b..16ac8f36fb 100644 --- a/script/dolphinscheduler-daemon.sh +++ b/script/dolphinscheduler-daemon.sh @@ -41,7 +41,7 @@ pid=$DOLPHINSCHEDULER_LOG_DIR/dolphinscheduler-$command.pid cd $DOLPHINSCHEDULER_HOME if [ "$command" = "api-server" ]; then - LOG_FILE="-Dlogging.config=conf/apiserver_logback.xml" + LOG_FILE="-Dspring.profiles.active=api" CLASS=org.apache.dolphinscheduler.api.ApiApplicationServer elif [ "$command" = "master-server" ]; then LOG_FILE="-Dspring.profiles.active=master -Ddruid.mysql.usePingMethod=false"