From 7334a22fc0d18f676e61528b4c081a6048e50dd5 Mon Sep 17 00:00:00 2001 From: shangfeding Date: Wed, 1 Nov 2023 17:25:42 +0800 Subject: [PATCH 1/2] feat: fix the logging problem open at #1189 --- .../config/logger/PolarisConfigLoggerApplicationListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/logger/PolarisConfigLoggerApplicationListener.java b/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/logger/PolarisConfigLoggerApplicationListener.java index a3cb9b571..6a1058cd4 100644 --- a/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/logger/PolarisConfigLoggerApplicationListener.java +++ b/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/logger/PolarisConfigLoggerApplicationListener.java @@ -17,6 +17,7 @@ */ package com.tencent.cloud.polaris.config.logger; +import com.tencent.polaris.logging.PolarisLogging; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -43,6 +44,7 @@ public void onApplicationEvent(ApplicationEvent event) { LoggingSystem loggingSystem = LoggingSystem.get(classLoader); LOGGER.info("PolarisConfigLoggerApplicationListener onApplicationEvent init loggingSystem:{}", loggingSystem); PolarisConfigLoggerContext.setLogSystem(loggingSystem); + PolarisLogging.getInstance().loadConfiguration(); } } catch (Exception e) { From 14c3c78f43127d3c0b5428b722bbb127b3ac634a Mon Sep 17 00:00:00 2001 From: shangfeding Date: Wed, 1 Nov 2023 17:29:29 +0800 Subject: [PATCH 2/2] feat: add changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f4f108c0..9df31d0fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Change Log --- +- [fix: fix the logging problem open at #1189.](https://github.com/Tencent/spring-cloud-tencent/pull/1196) - [fix:the polaris config relation non-daemon thread should stop when application fails to start.](https://github.com/Tencent/spring-cloud-tencent/pull/1102) - [Refactoring:remove invalid @AutoConfigureAfter and @AutoConfigureBefore from discovery client automatic configuration.](https://github.com/Tencent/spring-cloud-tencent/pull/1116) - [fix:fix feign url bug when using sleuth.](https://github.com/Tencent/spring-cloud-tencent/pull/1120)