|
@@ -4,7 +4,6 @@ import com.diagbot.enums.ProductTypeEnum;
|
|
|
import com.diagbot.log.entity.BiRecord;
|
|
|
import com.diagbot.rabbit.MySender;
|
|
|
import com.diagbot.util.AopUtil;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
import org.aspectj.lang.JoinPoint;
|
|
|
import org.aspectj.lang.ProceedingJoinPoint;
|
|
|
import org.aspectj.lang.annotation.AfterThrowing;
|
|
@@ -12,6 +11,7 @@ import org.aspectj.lang.annotation.Around;
|
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
|
import org.aspectj.lang.annotation.Pointcut;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
@@ -21,7 +21,7 @@ import org.springframework.stereotype.Component;
|
|
|
*/
|
|
|
@Aspect
|
|
|
@Component
|
|
|
-@Slf4j
|
|
|
+@ConditionalOnProperty(prefix = "bilog", value = { "enable" }, havingValue = "true")
|
|
|
public class BiLoggerAspect {
|
|
|
@Autowired
|
|
|
private MySender mySender;
|