KEYCLOAK-7547 Change log level of a message when deleting user

When deleting a user (who has not failed to log in yet if Brute Force Detection is not enabled), the following message is always recorded:

{noformat}
10:34:15,101 WARN  [org.keycloak.models.sessions.infinispan.changes.InfinispanChangelogBasedTransaction] (default task-7) Not present cache item for key LoginFailureKey [ realmId=568c76c7-9308-4d84-bfc1-ec3542deaf02. userId=4c011785-a39a-43bf-b0c1-43c63decf2f1 ]
{noformat}

This is noisy and should not be logged at warning level.
This commit is contained in:
Kohei Tamura 2019-07-25 10:48:52 +09:00 committed by Stian Thorgersen
parent da49dbce2b
commit c68afdab83

View file

@ -60,7 +60,7 @@ public class InfinispanChangelogBasedTransaction<K, V extends SessionEntity> ext
// Lookup entity from cache
SessionEntityWrapper<V> wrappedEntity = cache.get(key);
if (wrappedEntity == null) {
logger.warnf("Not present cache item for key %s", key);
logger.tracef("Not present cache item for key %s", key);
return;
}