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
db2e87f1
Commit
db2e87f1
authored
Nov 13, 2015
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch log to debug from info
Logging each request in the proxy is too verbose and inconsistent with other Spring MVC logging.
parent
db4c82c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
ProxyRouteLocator.java
...amework/cloud/netflix/zuul/filters/ProxyRouteLocator.java
+13
-9
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/ProxyRouteLocator.java
View file @
db2e87f1
...
@@ -57,12 +57,14 @@ public class ProxyRouteLocator implements RouteLocator {
...
@@ -57,12 +57,14 @@ public class ProxyRouteLocator implements RouteLocator {
public
ProxyRouteLocator
(
String
servletPath
,
DiscoveryClient
discovery
,
public
ProxyRouteLocator
(
String
servletPath
,
DiscoveryClient
discovery
,
ZuulProperties
properties
)
{
ZuulProperties
properties
)
{
if
(
StringUtils
.
hasText
(
servletPath
))
{
// a servletPath is passed explicitly
if
(
StringUtils
.
hasText
(
servletPath
))
{
// a servletPath is passed explicitly
this
.
servletPath
=
servletPath
;
this
.
servletPath
=
servletPath
;
}
else
{
}
//set Zuul servlet path
else
{
this
.
servletPath
=
properties
.
getServletPath
()
!=
null
?
properties
.
getServletPath
()
:
""
;
// set Zuul servlet path
}
this
.
servletPath
=
properties
.
getServletPath
()
!=
null
?
properties
.
getServletPath
()
:
""
;
}
if
(
properties
.
isIgnoreLocalService
())
{
if
(
properties
.
isIgnoreLocalService
())
{
ServiceInstance
instance
=
discovery
.
getLocalServiceInstance
();
ServiceInstance
instance
=
discovery
.
getLocalServiceInstance
();
...
@@ -111,7 +113,9 @@ public class ProxyRouteLocator implements RouteLocator {
...
@@ -111,7 +113,9 @@ public class ProxyRouteLocator implements RouteLocator {
}
}
public
ProxyRouteSpec
getMatchingRoute
(
String
path
)
{
public
ProxyRouteSpec
getMatchingRoute
(
String
path
)
{
log
.
info
(
"Finding route for path: "
+
path
);
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"Finding route for path: "
+
path
);
}
String
location
=
null
;
String
location
=
null
;
String
targetPath
=
null
;
String
targetPath
=
null
;
...
@@ -151,8 +155,8 @@ public class ProxyRouteLocator implements RouteLocator {
...
@@ -151,8 +155,8 @@ public class ProxyRouteLocator implements RouteLocator {
}
}
}
}
}
}
return
(
location
==
null
?
null
:
new
ProxyRouteSpec
(
id
,
targetPath
,
location
,
return
(
location
==
null
?
null
prefix
,
retryable
));
:
new
ProxyRouteSpec
(
id
,
targetPath
,
location
,
prefix
,
retryable
));
}
}
protected
boolean
matchesIgnoredPatterns
(
String
path
)
{
protected
boolean
matchesIgnoredPatterns
(
String
path
)
{
...
...
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