diff --git a/platform/src/main/java/org/stellar/anchor/platform/configurator/SpringFrameworkConfigurator.java b/platform/src/main/java/org/stellar/anchor/platform/configurator/SpringFrameworkConfigurator.java index 06e5a92e8..09d0cd16d 100644 --- a/platform/src/main/java/org/stellar/anchor/platform/configurator/SpringFrameworkConfigurator.java +++ b/platform/src/main/java/org/stellar/anchor/platform/configurator/SpringFrameworkConfigurator.java @@ -15,11 +15,12 @@ public void initialize(@NotNull ConfigurableApplicationContext applicationContex PropertiesPropertySource pps = createPrefixedPropertySource("spring"); pps.getSource() .forEach( - (String k, Object v) -> { - if (k.startsWith("logging.level")) { + (String cfgName, Object cfgValue) -> { + if (cfgName.startsWith("logging.level") && cfgValue instanceof String) { LoggingSystem system = LoggingSystem.get(SpringFrameworkConfigurator.class.getClassLoader()); - system.setLogLevel(k.replace("logging.level.", ""), LogLevel.valueOf((String) v)); + system.setLogLevel( + cfgName.replace("logging.level.", ""), LogLevel.valueOf((String) cfgValue)); } }); applicationContext.getEnvironment().getPropertySources().addFirst(pps);