Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
7ef8ea72
Commit
7ef8ea72
authored
Aug 07, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网关日志限制修改
parent
9f9e259a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
AccessGatewayFilter.java
...hub/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
+6
-0
No files found.
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
View file @
7ef8ea72
...
@@ -329,10 +329,16 @@ public class AccessGatewayFilter implements GlobalFilter {
...
@@ -329,10 +329,16 @@ public class AccessGatewayFilter implements GlobalFilter {
if
(
null
!=
method
)
{
if
(
null
!=
method
)
{
log
.
info
(
"=================请求方法:"
+
method
.
name
());
log
.
info
(
"=================请求方法:"
+
method
.
name
());
}
}
request
.
getHeaders
().
add
(
"uuid"
,
UUID
.
randomUUID
().
toString
());
// 记录头部信息
// 记录头部信息
builder
.
append
(
", header { "
);
builder
.
append
(
", header { "
);
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry
:
request
.
getHeaders
().
entrySet
())
{
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry
:
request
.
getHeaders
().
entrySet
())
{
builder
.
append
(
entry
.
getKey
()).
append
(
":"
).
append
(
StringUtils
.
join
(
entry
.
getValue
(),
","
)).
append
(
","
);
builder
.
append
(
entry
.
getKey
()).
append
(
":"
).
append
(
StringUtils
.
join
(
entry
.
getValue
(),
","
)).
append
(
","
);
if
(
"uuid"
.
equals
(
entry
.
getKey
()))
{
if
(
entry
.
getValue
()
!=
null
&&
entry
.
getValue
().
size
()
>
0
)
{
log
.
info
(
"=================请求方法uuid:"
+
entry
.
getValue
().
get
(
0
));
}
}
if
(
"Authorization"
.
equals
(
entry
.
getKey
()))
{
if
(
"Authorization"
.
equals
(
entry
.
getKey
()))
{
if
(
entry
.
getValue
()
!=
null
&&
entry
.
getValue
().
size
()
>
0
)
{
if
(
entry
.
getValue
()
!=
null
&&
entry
.
getValue
().
size
()
>
0
)
{
getAdminUserInfo
(
entry
.
getValue
().
get
(
0
));
getAdminUserInfo
(
entry
.
getValue
().
get
(
0
));
...
...
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