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,
|
||||
HttpServletResponse response) throws IOException {
|
||||
logger.debug("Starting new session (if required) and redirecting to '"
|
||||
+ destinationUrl + "'");
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Starting new session (if required) and redirecting to '"
|
||||
+ destinationUrl + "'");
|
||||
}
|
||||
if (createNewSession) {
|
||||
request.getSession();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue