diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/DesignEnvComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/DesignEnvComponent.java index c9c0b627d2..2612cdfae9 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/env/DesignEnvComponent.java +++ b/designer-realize/src/main/java/com/fanruan/boot/env/DesignEnvComponent.java @@ -250,7 +250,7 @@ public class DesignEnvComponent { // 获取本地的日志级别配置 Level localLogPreferLevel = Log4jConfig.getInstance().getRootLevel(); // 刷新到本地配置 - Log4jConfigFactory.getInstance().setRootLevel(localLogPreferLevel); + Log4jConfigFactory.getInstance().updateConfigLoggerLevel(localLogPreferLevel.name()); URI uri = Log4jUtils.buildUserConfigURI(StringUtils.EMPTY); FRLogger.getLogger().config(uri); // 刷新到carina的配置,防止 portal service 启动的时候覆盖了