Skip to content

Commit 836874c

Browse files
committed
Log message when user logs out via expired session
1 parent 693c74b commit 836874c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/service/UserService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ public void onHttpSessionDestroyedEvent(HttpSessionDestroyedEvent event) {
233233
Authentication authentication = securityContext.getAuthentication();
234234
String userId = ((User) authentication.getPrincipal()).getUsername();
235235

236+
log.info(String.format("User logged out [user: %s]", userId));
236237
applicationEventPublisher.publishEvent(new UserLogoutEvent(
237238
this,
238239
userId,

0 commit comments

Comments
 (0)