Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
eda03961
Commit
eda03961
authored
Mar 19, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不记录系统日志
parent
43976342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
LogBase.java
...loud/src/main/java/com/yanzuoguang/cloud/aop/LogBase.java
+5
-1
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/LogBase.java
View file @
eda03961
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.thread.ThreadNext;
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.thread.ThreadNext;
import
com.yanzuoguang.util.vo.LogVo
;
import
com.yanzuoguang.util.vo.LogVo
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,6 +27,9 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
...
@@ -26,6 +27,9 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
private
LogFeign
logFeign
;
private
LogFeign
logFeign
;
@Value
(
"${yzg.log.base:false}"
)
private
boolean
logBase
;
/**
/**
* Invoked by a BeanFactory after it has set all bean properties supplied
* Invoked by a BeanFactory after it has set all bean properties supplied
* (and satisfied BeanFactoryAware and ApplicationContextAware).
* (and satisfied BeanFactoryAware and ApplicationContextAware).
...
@@ -58,7 +62,7 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
...
@@ -58,7 +62,7 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
*/
*/
@Override
@Override
public
boolean
next
()
throws
Exception
{
public
boolean
next
()
throws
Exception
{
if
(
tru
e
)
{
if
(
!
logBas
e
)
{
cache
.
clear
();
cache
.
clear
();
return
true
;
return
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment