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
168c29a7
Commit
168c29a7
authored
Mar 19, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不记录系统日志
parent
8d4a7950
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
LogBase.java
...loud/src/main/java/com/yanzuoguang/cloud/aop/LogBase.java
+17
-9
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/LogBase.java
View file @
168c29a7
...
...
@@ -24,6 +24,8 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
@Autowired
protected
List
<
LogFeign
>
logFeigns
;
private
LogFeign
logFeign
;
/**
* Invoked by a BeanFactory after it has set all bean properties supplied
* (and satisfied BeanFactoryAware and ApplicationContextAware).
...
...
@@ -56,23 +58,29 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
*/
@Override
public
boolean
next
()
throws
Exception
{
if
(
true
)
{
cache
.
clear
();
return
true
;
// if (true) {
// cache.clear();
// return true;
// }
for
(
LogFeign
log
:
logFeigns
)
{
if
(
log
instanceof
LogFeignDefault
&&
logFeign
==
null
)
{
logFeign
=
log
;
}
else
{
logFeign
=
log
;
}
}
while
(
cache
.
size
()
>
0
)
{
LogVo
item
=
cache
.
poll
();
if
(
item
!=
null
)
{
for
(
LogFeign
log
:
logFeigns
)
{
try
{
log
.
save
(
item
);
logFeign
.
save
(
item
);
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
}
}
}
}
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