Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
0a4426bc
Commit
0a4426bc
authored
Jul 23, 2021
by
zhiheng.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除logutil 打印
parent
e5b3b651
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
shopping-cart-application-service/src/main/java/cn/freemud/aop/WebAspect.java
+3
-7
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/aop/WebAspect.java
View file @
0a4426bc
...
...
@@ -228,13 +228,11 @@ public class WebAspect {
String
messageValue
=
"ignore"
;
// 打印第三方出参日志
if
(!
this
.
printFeignResponseBodyLog
)
{
IgnoreFeignLogAnnotation
logIgnore
=
currentMethod
.
getAnnotation
(
IgnoreFeignLogAnnotation
.
class
);
if
(
logIgnore
!=
null
)
{
if
(
logIgnore
!=
null
&&
logIgnore
.
printLog
())
{
statusCodeValue
=
org
.
apache
.
commons
.
beanutils
.
BeanUtils
.
getProperty
(
result
,
logIgnore
.
statusCodeFieldName
());
messageValue
=
org
.
apache
.
commons
.
beanutils
.
BeanUtils
.
getProperty
(
result
,
logIgnore
.
messageFieldName
());
if
(!
this
.
printFeignResponseBodyLog
||
logIgnore
.
printLog
())
{
//todo 当排除了这个状态码不打印响应的具体内容只会打印状态码和状态描述信息
String
[]
excludeStatusCodes
=
logIgnore
.
excludeStatusCodes
();
if
(!
StringUtils
.
isEmpty
(
statusCodeValue
)
&&
this
.
containStatusCode
(
excludeStatusCodes
,
statusCodeValue
))
{
...
...
@@ -244,9 +242,7 @@ public class WebAspect {
}
}
}
ThirdPartyLog
.
infoConvertJson
(
statusCodeValue
,
messageValue
,
start
,
System
.
currentTimeMillis
(),
thirdPartLogVo
.
getUri
(),
thirdPartLogVo
.
getRequestBody
(),
logReult
);
ThirdPartyLog
.
infoConvertJson
(
statusCodeValue
,
messageValue
,
start
,
System
.
currentTimeMillis
(),
thirdPartLogVo
.
getUri
(),
thirdPartLogVo
.
getRequestBody
(),
logReult
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"WebAspect Feign Log Ignore error {}"
,
ExceptionUtils
.
getMessage
(
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