From 185dc76db1d3a075f50b294ed397fcefec369d8f Mon Sep 17 00:00:00 2001 From: liuyuanmu Date: Tue, 23 Nov 2021 19:44:11 +0800 Subject: [PATCH] fix log error --- core | 2 +- deploy/deploy-gateway/src/main/resources/scripts/startup.sh | 2 +- deploy/deploy-peer/src/main/resources/scripts/peer-startup.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core b/core index 7cc33c34..2ab280cb 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 7cc33c3436e16519ad2ea3aedb8fbf3eff77c60f +Subproject commit 2ab280cb360af86d62beb65d724250754f5577d4 diff --git a/deploy/deploy-gateway/src/main/resources/scripts/startup.sh b/deploy/deploy-gateway/src/main/resources/scripts/startup.sh index e0a62da9..a540923c 100644 --- a/deploy/deploy-gateway/src/main/resources/scripts/startup.sh +++ b/deploy/deploy-gateway/src/main/resources/scripts/startup.sh @@ -35,7 +35,7 @@ GATEWAY_CONFIG=$CONFIG_PATH/gateway.conf SPRING_CONFIG=$CONFIG_PATH/application-gw.properties #定义程序启动的参数 -JAVA_OPTS="-jar -server -Xms1024m -Xmx1024m -Djdchain.log=$APP_HOME/logs -Dlogging.config=file:$APP_HOME/config/log4j2-gw.xml" +JAVA_OPTS="-jar -server -Xms1024m -Xmx1024m -Djdchain.log=$APP_HOME/logs -Dlog4j.configurationFile=file:$APP_HOME/config/log4j2-gw.xml" #APP具体相关命令 APP_CMD=$APP_LIB_PATH/$APP_JAR" -c "$GATEWAY_CONFIG" -sp "$SPRING_CONFIG diff --git a/deploy/deploy-peer/src/main/resources/scripts/peer-startup.sh b/deploy/deploy-peer/src/main/resources/scripts/peer-startup.sh index bd564b10..b793e4b9 100644 --- a/deploy/deploy-peer/src/main/resources/scripts/peer-startup.sh +++ b/deploy/deploy-peer/src/main/resources/scripts/peer-startup.sh @@ -46,7 +46,7 @@ LEDGER_BINDING_CONFIG=$CONFIG_PATH/ledger-binding.conf SPRING_CONFIG=$CONFIG_PATH/application-peer.properties #定义程序启动的参数 -JAVA_OPTS="-jar -server -Xms2048m -Xmx2048m -Djdchain.log=$APP_HOME/logs -Dlogging.config=file:$APP_HOME/config/log4j2-peer.xml" +JAVA_OPTS="-jar -server -Xms2048m -Xmx2048m -Djdchain.log=$APP_HOME/logs -Dlog4j.configurationFile=file:$APP_HOME/config/log4j2-peer.xml" #APP具体相关命令 APP_CMD=$APP_SYSTEM_PATH/$APP_JAR" -home="$APP_HOME" -c "$LEDGER_BINDING_CONFIG" -p "$WEB_PORT" -sp "$SPRING_CONFIG