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
55785ef7
Commit
55785ef7
authored
May 13, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复等待时间
parent
ed4e5136
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AspectLogResult.java
.../main/java/com/yanzuoguang/cloud/aop/AspectLogResult.java
+4
-4
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/AspectLogResult.java
View file @
55785ef7
...
@@ -56,10 +56,10 @@ public class AspectLogResult {
...
@@ -56,10 +56,10 @@ public class AspectLogResult {
String
fullUrl
=
String
.
format
(
"%s:%s"
,
tag
,
url
);
String
fullUrl
=
String
.
format
(
"%s:%s"
,
tag
,
url
);
// 输出日志标记
// 输出日志标记
boolean
isLogCommon
=
logFlag
&&
this
.
cloudConfig
.
isLogCommon
();
boolean
isLogCommon
=
logFlag
&&
this
.
cloudConfig
.
isLogCommon
();
boolean
is
LogDatabase
=
resultEx
!=
null
;
boolean
is
Error
=
resultEx
!=
null
;
boolean
isLogDisplay
=
isLogCommon
||
is
LogDatabase
;
boolean
isLogDisplay
=
isLogCommon
||
is
Error
;
// 记录请求时间
// 记录请求时间
aspectLogTime
.
finish
(
fullUrl
,
time
,
is
LogDatabase
);
aspectLogTime
.
finish
(
fullUrl
,
time
,
is
Error
);
// ThreadHelper.waitRun(WAIT_MAX, WAIT_ITEM, k -> StringHelper.isEmpty(log.getLogId()))
// ThreadHelper.waitRun(WAIT_MAX, WAIT_ITEM, k -> StringHelper.isEmpty(log.getLogId()))
if
(
StringHelper
.
isEmpty
(
log
.
getLogId
())
||
!
isLogDisplay
)
{
if
(
StringHelper
.
isEmpty
(
log
.
getLogId
())
||
!
isLogDisplay
)
{
return
;
return
;
...
@@ -82,7 +82,7 @@ public class AspectLogResult {
...
@@ -82,7 +82,7 @@ public class AspectLogResult {
String
json
=
JsonHelper
.
serialize
(
responseResult
);
String
json
=
JsonHelper
.
serialize
(
responseResult
);
Log
.
error
(
cls
,
resultEx
,
"%s [ %s ] time %d ms, result: %s"
,
tag
,
url
,
time
,
aspectLogBody
.
getMaxString
(
json
));
Log
.
error
(
cls
,
resultEx
,
"%s [ %s ] time %d ms, result: %s"
,
tag
,
url
,
time
,
aspectLogBody
.
getMaxString
(
json
));
if
(
is
LogDatabase
)
{
if
(
is
Error
)
{
logLocal
.
result
(
log
,
responseResult
.
getCode
(),
json
);
logLocal
.
result
(
log
,
responseResult
.
getCode
(),
json
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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