Make CaffeineWarnLogger message more specific. Refactor. Fixes gh-1050.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user