Polishing.
Eagerly convert validity TTL to seconds for proper logging. See gh-176.
This commit is contained in:
@@ -173,9 +173,9 @@ public class LifecycleAwareSessionManager implements SessionManager, DisposableB
|
||||
VaultResponse.class);
|
||||
LoginToken renewed = LoginTokenUtil.from(vaultResponse.getAuth());
|
||||
|
||||
long validTtlThreshold = refreshTrigger.getValidTtlThreshold(renewed);
|
||||
if (renewed.getLeaseDuration() <= TimeUnit.MILLISECONDS
|
||||
.toSeconds(validTtlThreshold)) {
|
||||
long validTtlThreshold = TimeUnit.MILLISECONDS.toSeconds(refreshTrigger
|
||||
.getValidTtlThreshold(renewed));
|
||||
if (renewed.getLeaseDuration() <= validTtlThreshold) {
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.info(String
|
||||
|
||||
Reference in New Issue
Block a user