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
6ed0ffd1
Commit
6ed0ffd1
authored
Mar 17, 2025
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复异常提醒,从而正确的跟踪异常信息
parent
1d12de05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
LogBase.java
yzg-util-db/src/main/java/com/yanzuoguang/log/LogBase.java
+2
-8
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/log/LogBase.java
View file @
6ed0ffd1
...
...
@@ -2,7 +2,6 @@ package com.yanzuoguang.log;
import
com.yanzuoguang.util.exception.ExceptionHelper
;
import
com.yanzuoguang.util.thread.ThreadNext
;
import
com.yanzuoguang.util.vo.CloudConfig
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.stereotype.Component
;
...
...
@@ -21,12 +20,9 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
* 缓存队列
*/
protected
volatile
LinkedBlockingQueue
<
LogInfoVo
>
cache
=
new
LinkedBlockingQueue
<>();
private
final
CloudConfig
cloudConfig
;
private
final
LogFeignBase
logFeign
;
public
LogBase
(
CloudConfig
cloudConfig
,
LogFeignDefault
logFeignDefault
,
Optional
<
LogFeign
>
logFeign
)
{
this
.
cloudConfig
=
cloudConfig
;
public
LogBase
(
LogFeignDefault
logFeignDefault
,
Optional
<
LogFeign
>
logFeign
)
{
if
(
logFeign
.
isPresent
())
{
this
.
logFeign
=
logFeign
.
get
();
}
else
{
...
...
@@ -48,9 +44,7 @@ public class LogBase implements ThreadNext.Next, InitializingBean {
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
// 判断是否要记录日志
if
(
cloudConfig
.
isLogBase
())
{
ThreadNext
.
start
(
this
,
"save log error"
);
}
ThreadNext
.
start
(
this
,
"save log error"
);
}
/**
...
...
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