|
|
@@ -2,6 +2,7 @@ package com.nb.web.service.log.config;
|
|
|
|
|
|
import ch.qos.logback.classic.Level;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.nb.common.config.notice.msg.ErrorMsg;
|
|
|
import com.nb.common.config.notice.wechat.EnterpriseWeChatNotify;
|
|
|
import com.nb.common.log.event.InnerLog4j2;
|
|
|
@@ -50,6 +51,10 @@ public class LogEventListenerConfig {
|
|
|
public void innerLog(InnerLog4j2Event logEvent){
|
|
|
InnerLog4j2 log = logEvent.getLog();
|
|
|
if(Level.ERROR.levelStr.equals(log.getLevel())){
|
|
|
+ String exceptionStack = log.getExceptionStack();
|
|
|
+ if(StrUtil.containsAny(exceptionStack,"NotLoginException","Broken pipe")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
SysRunningLog sysLog = BeanUtil.copyProperties(log, SysRunningLog.class);
|
|
|
sysRunningLogService.save(sysLog);
|
|
|
if(weChatNotify!=null){
|