Skip to content

Commit

Permalink
Adjust log levels, close on destroy (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
skjolber authored Mar 4, 2024
1 parent a0d6e4d commit 069e7b2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void add(BeanDefinitionRegistry registry, String method, Set<String> key
}
}

@Bean
@Bean(destroyMethod = "close")
@ConditionalOnEnabledHealthIndicator("jwts")
public AccessTokenProviderHealthIndicator jwtsHealthIndicator(Map<String, AccessTokenProvider> providers) {
// could trigger health update here, but that would interfere with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void logInitialOrChangedState(AccessTokenHealth health) {
}
} else {
if (!health.isSuccess()) {
logger.warn("{} JWT health initialized to DOWN", name);
logger.info("{} JWT health initialized to DOWN", name);
} else {
logger.info("{} JWT health initialized to UP", name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected AccessTokenHealth refreshHealth() {
if(isIdle()) {
refreshHealth(healthy, unhealthy, time);
} else {
LOGGER.info("Previous health refresh is still in progress ({} outstanding)", countDownLatch.getCount());
LOGGER.info("Previous JWT health refresh is still in progress ({} outstanding)", countDownLatch.getCount());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void logInitialOrChangedState(JwksHealth health) {
}
} else {
if (!health.isSuccess()) {
logger.warn("{} JWKs health initialized to DOWN", name);
logger.info("{} JWKs health initialized to DOWN", name);
} else {
logger.info("{} JWKs health initialized to UP", name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected JwksHealth getJwksHealth() {
if(isIdle()) {
refreshHealth(healthy, unhealthy, time);
} else {
LOGGER.info("Previous health refresh is still in progress ({} outstanding)", countDownLatch.getCount());
LOGGER.info("Previous JWK health refresh is still in progress ({} outstanding)", countDownLatch.getCount());
}
}

Expand Down

0 comments on commit 069e7b2

Please sign in to comment.