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
3551b9d5
Commit
3551b9d5
authored
Mar 10, 2025
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复异常提醒,从而正确的跟踪异常信息
parent
805755e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
Timeout.java
...loud/src/main/java/com/yanzuoguang/cloud/aop/Timeout.java
+2
-2
LogLocal.java
...src/main/java/com/yanzuoguang/cloud/aop/log/LogLocal.java
+2
-11
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/Timeout.java
View file @
3551b9d5
...
...
@@ -37,7 +37,7 @@ public class Timeout<T> {
/**
* 开始时间
*
* @return
* @return
获取开始时间
*/
public
long
getStart
()
{
return
start
;
...
...
@@ -46,7 +46,7 @@ public class Timeout<T> {
/**
* 数据
*
* @return
* @return
获取结束时间
*/
public
T
getData
()
{
return
data
;
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/log/LogLocal.java
View file @
3551b9d5
...
...
@@ -135,15 +135,6 @@ public class LogLocal implements ThreadNext.Next, InitializingBean {
this
.
resultWrite
(
log
,
StringHelper
.
EMPTY
,
StringHelper
.
EMPTY
,
false
);
}
/**
* 记录超时
*
* @param timeout 超时对象
*/
private
void
writeTimeout
(
Timeout
<
LogVo
>
timeout
)
{
this
.
resultWrite
(
timeout
.
getData
(),
MAX_TIME
,
MAX_TIME_NAME
,
true
);
}
/**
* 是否属于日志服务
*
...
...
@@ -181,7 +172,7 @@ public class LogLocal implements ThreadNext.Next, InitializingBean {
}
// 判断是否达到超时时间
if
(
timeout
.
isMaxTime
(
this
.
cloudConfig
.
getLogTimeMax
(),
this
.
cloudConfig
.
getLogTimeSplit
()))
{
writeTimeout
(
timeout
);
this
.
resultWrite
(
timeout
.
getData
(),
MAX_TIME
,
MAX_TIME_NAME
,
true
);
}
}
return
true
;
...
...
@@ -190,7 +181,7 @@ public class LogLocal implements ThreadNext.Next, InitializingBean {
/**
* 沉睡时间
*
* @return
* @return
下次执行时间
*/
@Override
public
int
getNextTime
()
{
...
...
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