Fix placeholders in log statements.

The log statement incorrectly used String.format(..) placecholders (e.g. %s) rather than SLF4J placeholders (e.g. {}).

Resolves gh-24.
This commit is contained in:
Toshiaki Maki
2019-03-03 21:04:35 +09:00
committed by John Blum
parent 5a70c32261
commit 9a27b397fc

View File

@@ -122,7 +122,7 @@ public class LocatorsConfiguration extends AbstractAnnotationConfigSupport imple
getLocators().ifPresent(locators -> {
if (logger.isWarnEnabled()) {
logger.warn("The '%s' property was configured [%s];"
logger.warn("The '{}' property was configured [{}];"
+ " however, this value does not have any effect for ClientCache instances",
LOCATORS_PROPERTY, locators);
}
@@ -130,7 +130,7 @@ public class LocatorsConfiguration extends AbstractAnnotationConfigSupport imple
getRemoteLocators().ifPresent(remoteLocators -> {
if (logger.isWarnEnabled()) {
logger.warn("The '%s' property was configured [%s];"
logger.warn("The '{}' property was configured [{}];"
+ " however, this value does not have any effect for ClientCache instances",
REMOTE_LOCATORS_PROPERTY, remoteLocators);
}