Logger is not passed required parameter

We should either not log the token and remove %s or log the token.

Original pull request: gh-599.
This commit is contained in:
Iouri Goussev
2020-11-25 12:17:40 -05:00
committed by Mark Paluch
parent 6a98bc1f50
commit 19bf83f505

View File

@@ -177,7 +177,7 @@ public class LifecycleAwareSessionManager extends LifecycleAwareSessionManagerSu
dispatch(new AfterLoginTokenRevocationEvent(token));
}
catch (RuntimeException e) {
this.logger.warn("Cannot revoke VaultToken: %s", e);
this.logger.warn(String.format("Cannot revoke VaultToken: %s", token.getToken()), e);
dispatch(new LoginTokenRevocationFailedEvent(token, e));
}
}