Commit db2e87f1 by Dave Syer

Switch log to debug from info

Logging each request in the proxy is too verbose and inconsistent with other Spring MVC logging.
parent db4c82c3
......@@ -59,9 +59,11 @@ public class ProxyRouteLocator implements RouteLocator {
ZuulProperties properties) {
if (StringUtils.hasText(servletPath)) { // a servletPath is passed explicitly
this.servletPath = servletPath;
} else {
//set Zuul servlet path
this.servletPath = properties.getServletPath() != null? properties.getServletPath() : "";
}
else {
// set Zuul servlet path
this.servletPath = properties.getServletPath() != null
? properties.getServletPath() : "";
}
if (properties.isIgnoreLocalService()) {
......@@ -111,7 +113,9 @@ public class ProxyRouteLocator implements RouteLocator {
}
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 targetPath = null;
......@@ -151,8 +155,8 @@ public class ProxyRouteLocator implements RouteLocator {
}
}
}
return (location == null ? null : new ProxyRouteSpec(id, targetPath, location,
prefix, retryable));
return (location == null ? null
: new ProxyRouteSpec(id, targetPath, location, prefix, retryable));
}
protected boolean matchesIgnoredPatterns(String path) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment