Commit d6819666 authored by yanzg's avatar yanzg

不记录系统日志

parent 1b7f9f54
...@@ -2,11 +2,8 @@ package com.yanzuoguang.cloud.aop; ...@@ -2,11 +2,8 @@ package com.yanzuoguang.cloud.aop;
import com.yanzuoguang.util.vo.LogVo; import com.yanzuoguang.util.vo.LogVo;
import com.yanzuoguang.util.vo.ResponseResult; import com.yanzuoguang.util.vo.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List;
/** /**
* 日志默认处理服务 * 日志默认处理服务
* *
...@@ -17,9 +14,6 @@ public class LogFeignDefault implements LogFeign { ...@@ -17,9 +14,6 @@ public class LogFeignDefault implements LogFeign {
private boolean init = false; private boolean init = false;
@Autowired
protected List<LogFeign> logFeigns;
/** /**
* 保存日志对象 * 保存日志对象
* *
...@@ -30,10 +24,8 @@ public class LogFeignDefault implements LogFeign { ...@@ -30,10 +24,8 @@ public class LogFeignDefault implements LogFeign {
public ResponseResult<String> save(LogVo log) { public ResponseResult<String> save(LogVo log) {
if (!init) { if (!init) {
init = true; init = true;
if (logFeigns.size() == 1) {
System.err.println("请添加处理日志服务,实现LogFeign接口!"); System.err.println("请添加处理日志服务,实现LogFeign接口!");
} }
}
return ResponseResult.result("处理成功"); return ResponseResult.result("处理成功");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment