Skip to content

Commit

Permalink
WICKET-6786: Fix logging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
salcho committed Aug 5, 2020
1 parent e9c471e commit 1e2acdb
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -94,9 +94,7 @@ public void onBeginRequest(RequestCycle cycle)
HttpServletRequest containerRequest = (HttpServletRequest)cycle.getRequest()
.getContainerRequest();

if (log.isDebugEnabled()) {
log.debug("Processing request to: {}", new Object[]{containerRequest.getPathInfo()});
}
log.debug("Processing request to: {}", containerRequest.getPathInfo());
}

@Override
Expand All @@ -123,10 +121,8 @@ public void onRequestHandlerResolved(RequestCycle cycle, IRequestHandler handler

for (ResourceIsolationPolicy resourceIsolationPolicy : resourceIsolationPolicies) {
if (!resourceIsolationPolicy.isRequestAllowed(containerRequest, targetedPage)) {
if (log.isDebugEnabled()) {
log.debug("Isolation policy {} has rejected a request to {}",
new Object[]{Classes.simpleName(resourceIsolationPolicy.getClass()), pathInfo});
}
Classes.simpleName(resourceIsolationPolicy.getClass()), pathInfo);
throw new AbortWithHttpErrorCodeException(ERROR_CODE, ERROR_MESSAGE);
}
}
Expand Down

0 comments on commit 1e2acdb

Please sign in to comment.