Add guard around logger.debug statement
The log message involves string concatenation, the cost of which should only be incurred if debug logging is enabled Issue gh-9648
This commit is contained in:
parent
adf3e94c9f
commit
ab34c0308c
|
@ -46,8 +46,10 @@ public final class SimpleRedirectInvalidSessionStrategy implements InvalidSessio
|
||||||
|
|
||||||
public void onInvalidSessionDetected(HttpServletRequest request,
|
public void onInvalidSessionDetected(HttpServletRequest request,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
logger.debug("Starting new session (if required) and redirecting to '"
|
if (logger.isDebugEnabled()) {
|
||||||
+ destinationUrl + "'");
|
logger.debug("Starting new session (if required) and redirecting to '"
|
||||||
|
+ destinationUrl + "'");
|
||||||
|
}
|
||||||
if (createNewSession) {
|
if (createNewSession) {
|
||||||
request.getSession();
|
request.getSession();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue