diff --git a/dolphinscheduler-api/src/main/resources/application-api.properties b/dolphinscheduler-api/src/main/resources/application-api.properties index f956326cc5f34c0e6eaf0e0b974534e4734d2f7d..71ef666e537ebceed40c7a4e25048b3cb75d24fd 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 45898a013b663f2cf435a680a4295cf01acaa126..16ac8f36fbfada719dbefccf92d3b4b8c60d5506 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"