Skip to content

Commit

Permalink
feat: fix the logging problem open at #1189
Browse files Browse the repository at this point in the history
  • Loading branch information
shangfeding committed Nov 1, 2023
1 parent e34fe66 commit 7334a22
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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) {
Expand Down

0 comments on commit 7334a22

Please sign in to comment.