Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
45420b96
Commit
45420b96
authored
Nov 26, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debug logging (use /trace instead)
parent
065d91fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
SimpleHostRoutingFilter.java
...d/netflix/zuul/filters/route/SimpleHostRoutingFilter.java
+0
-37
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/route/SimpleHostRoutingFilter.java
View file @
45420b96
...
...
@@ -226,47 +226,10 @@ public class SimpleHostRoutingFilter extends ZuulFilter {
return
null
;
}
private
InputStream
debug
(
HttpClient
httpclient
,
String
verb
,
String
uri
,
HttpServletRequest
request
,
Header
[]
headers
,
InputStream
requestEntity
)
throws
Exception
{
if
(
Debug
.
debugRequest
())
{
Debug
.
addRequestDebug
(
"ZUUL:: host="
+
RequestContext
.
getCurrentContext
().
getRouteHost
());
for
(
Header
header
:
headers
)
{
Debug
.
addRequestDebug
(
String
.
format
(
"ZUUL::> %s %s"
,
header
.
getName
(),
header
.
getValue
()));
}
Debug
.
addRequestDebug
(
String
.
format
(
"ZUUL:: > ${verb} ${uri}?${query} HTTP/1.1"
,
verb
,
uri
,
request
.
getQueryString
()));
if
(
requestEntity
!=
null
)
{
requestEntity
=
debugRequestEntity
(
requestEntity
);
}
}
return
requestEntity
;
}
private
InputStream
debugRequestEntity
(
InputStream
inputStream
)
throws
Exception
{
if
(
Debug
.
debugRequestHeadersOnly
())
return
inputStream
;
if
(
inputStream
==
null
)
return
null
;
String
entity
=
IOUtils
.
toString
(
inputStream
);
Debug
.
addRequestDebug
(
"ZUUL::> "
+
entity
);
return
new
ByteArrayInputStream
(
entity
.
getBytes
());
}
private
HttpResponse
forward
(
HttpClient
httpclient
,
String
verb
,
String
uri
,
HttpServletRequest
request
,
Header
[]
headers
,
InputStream
requestEntity
)
throws
Exception
{
requestEntity
=
debug
(
httpclient
,
verb
,
uri
,
request
,
headers
,
requestEntity
);
HttpHost
httpHost
=
getHttpHost
();
HttpRequest
httpRequest
;
...
...
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