diff --git a/modules/agent/src/main/java/cn/keepbx/jpom/system/AgentExtConfigBean.java b/modules/agent/src/main/java/cn/keepbx/jpom/system/AgentExtConfigBean.java index a9176c389..f0aa7bb03 100644 --- a/modules/agent/src/main/java/cn/keepbx/jpom/system/AgentExtConfigBean.java +++ b/modules/agent/src/main/java/cn/keepbx/jpom/system/AgentExtConfigBean.java @@ -77,7 +77,10 @@ public class AgentExtConfigBean { agentExtConfigBean = SpringUtil.getBean(AgentExtConfigBean.class); // 读取配置的编码格式 if (StrUtil.isNotBlank(agentExtConfigBean.logFileCharset)) { - agentExtConfigBean.logFileCharsets = CharsetUtil.charset(agentExtConfigBean.logFileCharset); + try { + agentExtConfigBean.logFileCharsets = CharsetUtil.charset(agentExtConfigBean.logFileCharset); + } catch (Exception ignored) { + } } } return agentExtConfigBean;