修复log event加载两次的bug

This commit is contained in:
smallchill 2019-02-21 13:42:18 +08:00
parent aaec571b1f
commit 0b06a4abf9
3 changed files with 7 additions and 13 deletions

View File

@ -18,18 +18,17 @@ package org.springblade.core.log.event;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.log.constant.EventConstant;
import org.springblade.core.launch.props.BladeProperties;
import org.springblade.core.secure.utils.SecureUtil;
import org.springblade.core.launch.server.ServerInfo;
import org.springblade.core.tool.utils.UrlUtil;
import org.springblade.core.tool.utils.WebUtil;
import org.springblade.core.log.constant.EventConstant;
import org.springblade.core.log.feign.ILogClient;
import org.springblade.core.log.model.LogApi;
import org.springblade.core.secure.utils.SecureUtil;
import org.springblade.core.tool.utils.UrlUtil;
import org.springblade.core.tool.utils.WebUtil;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;
@ -42,7 +41,6 @@ import java.util.Map;
* @author Chill
*/
@Slf4j
@Component
@AllArgsConstructor
public class ApiLogListener {

View File

@ -18,17 +18,16 @@ package org.springblade.core.log.event;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.log.constant.EventConstant;
import org.springblade.core.launch.props.BladeProperties;
import org.springblade.core.secure.utils.SecureUtil;
import org.springblade.core.launch.server.ServerInfo;
import org.springblade.core.tool.utils.WebUtil;
import org.springblade.core.log.constant.EventConstant;
import org.springblade.core.log.feign.ILogClient;
import org.springblade.core.log.model.LogError;
import org.springblade.core.secure.utils.SecureUtil;
import org.springblade.core.tool.utils.WebUtil;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;
@ -40,7 +39,6 @@ import java.util.Map;
* @author Chill
*/
@Slf4j
@Component
@AllArgsConstructor
public class ErrorLogListener {

View File

@ -29,7 +29,6 @@ import org.springblade.core.tool.utils.WebUtil;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;
@ -41,7 +40,6 @@ import java.util.Map;
* @author Chill
*/
@Slf4j
@Component
@AllArgsConstructor
public class UsualLogListener {