Description
Currently we often get consecutive logs like these
2025-07-22 17:27:22,593 DEBUG [org.keycloak.models.jpa.session.JpaUserSessionPersisterProvider] (Timer-0) Removed 0 expired user sessions and 0 expired client sessions in realm 'master'
2025-07-22 17:27:22,595 DEBUG [org.keycloak.models.jpa.session.JpaUserSessionPersisterProvider] (Timer-0) Removed 0 expired user sessions and 0 expired client sessions in realm 'master'
However they mean different actions: one is attempt to clean non-offline sessions, another one - offline.
Consider making it explicit from logging inside
|
private void expire(RealmModel realm, int expiredClientOffline, int expiredOffline, boolean offline) { |
Discussion
No response
Motivation
Be able to properly distinguish online and offline sessions expiration
Details
I can contribute a PR
Description
Currently we often get consecutive logs like these
However they mean different actions: one is attempt to clean non-offline sessions, another one - offline.
Consider making it explicit from logging inside
keycloak/model/jpa/src/main/java/org/keycloak/models/jpa/session/JpaUserSessionPersisterProvider.java
Line 274 in 57972d8
Discussion
No response
Motivation
Be able to properly distinguish online and offline sessions expiration
Details
I can contribute a PR