Commit eda03961 authored by yanzg's avatar yanzg

不记录系统日志

parent 43976342
......@@ -4,6 +4,7 @@ import com.yanzuoguang.util.thread.ThreadNext;
import com.yanzuoguang.util.vo.LogVo;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.List;
......@@ -26,6 +27,9 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
private LogFeign logFeign;
@Value("${yzg.log.base:false}")
private boolean logBase;
/**
* Invoked by a BeanFactory after it has set all bean properties supplied
* (and satisfied BeanFactoryAware and ApplicationContextAware).
......@@ -58,7 +62,7 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
*/
@Override
public boolean next() throws Exception {
if (true) {
if (!logBase) {
cache.clear();
return true;
}
......
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