Make CaffeineWarnLogger message more specific. Refactor. Fixes gh-1050.

This commit is contained in:
Olga MaciaszekSharma
2021-12-06 18:00:50 +01:00
parent c2c361b7fe
commit 0088d28711
2 changed files with 3 additions and 1 deletions

View File

@@ -31,7 +31,8 @@ class CompatibilityNotMetException extends RuntimeException {
final List<VerificationResult> results;
CompatibilityNotMetException(List<VerificationResult> results) {
super("Spring Cloud/ Spring Boot version compatibility checks have failed: " + Arrays.toString(results.toArray()));
super("Spring Cloud/ Spring Boot version compatibility checks have failed: "
+ Arrays.toString(results.toArray()));
this.results = results;
}

View File

@@ -80,6 +80,7 @@ public class LoadBalancerCacheAutoConfiguration {
void logWarning() {
if (LOG.isWarnEnabled()) {
LOG.warn("Spring Cloud LoadBalancer is currently working with the default cache. "
+ "While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production."
+ "You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.");
}
}