Skip to content

Commit

Permalink
fix logmessage
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Sep 28, 2022
1 parent 2e755bf commit 5954e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/appng/tomcat/session/SessionManager.java
Expand Up @@ -84,9 +84,9 @@ public Session createSession(String sessionId) {

@Override
public final Session findSession(String id) throws IOException {
long start = System.nanoTime();
Session session = (Session) super.findSession(id);
if (null == session) {
long start = System.nanoTime();
SessionData sessionData = findSessionInternal(id);

if (null == sessionData) {
Expand All @@ -106,7 +106,7 @@ public final Session findSession(String id) throws IOException {
}
} else {
if (log().isDebugEnabled()) {
log().debug(String.format(Locale.ENGLISH, "Loaded %s form local store.", id));
log().debug(String.format(Locale.ENGLISH, "Loaded %s from local store in %.2fms.", id, getDuration(start)));
}
session.access();
}
Expand Down

0 comments on commit 5954e54

Please sign in to comment.