polish

parent d4163dde
...@@ -88,12 +88,14 @@ public class SimpleRouteLocator implements RouteLocator { ...@@ -88,12 +88,14 @@ public class SimpleRouteLocator implements RouteLocator {
this.routes.set(locateRoutes()); this.routes.set(locateRoutes());
} }
log.debug("servletPath=" + this.dispatcherServletPath); if (log.isDebugEnabled()) {
log.debug("zuulServletPath=" + this.zuulServletPath); log.debug("servletPath=" + this.dispatcherServletPath);
log.debug("RequestUtils.isDispatcherServletRequest()=" log.debug("zuulServletPath=" + this.zuulServletPath);
+ RequestUtils.isDispatcherServletRequest()); log.debug("RequestUtils.isDispatcherServletRequest()="
log.debug("RequestUtils.isZuulServletRequest()=" + RequestUtils.isDispatcherServletRequest());
+ RequestUtils.isZuulServletRequest()); log.debug("RequestUtils.isZuulServletRequest()="
+ RequestUtils.isZuulServletRequest());
}
String adjustedPath = adjustPath(path); String adjustedPath = adjustPath(path);
...@@ -108,7 +110,9 @@ public class SimpleRouteLocator implements RouteLocator { ...@@ -108,7 +110,9 @@ public class SimpleRouteLocator implements RouteLocator {
} }
} }
} }
log.debug("route matched=" + route); if (log.isDebugEnabled()) {
log.debug("route matched=" + route);
}
return getRoute(route, adjustedPath); return getRoute(route, adjustedPath);
......
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