diff --git a/commons-logger/src/main/java/io/gitlab/jfronny/commons/logger/HotswapLoggerFinder.java b/commons-logger/src/main/java/io/gitlab/jfronny/commons/logger/HotswapLoggerFinder.java index 043d73f..b832b10 100644 --- a/commons-logger/src/main/java/io/gitlab/jfronny/commons/logger/HotswapLoggerFinder.java +++ b/commons-logger/src/main/java/io/gitlab/jfronny/commons/logger/HotswapLoggerFinder.java @@ -57,7 +57,12 @@ public class HotswapLoggerFinder extends LeveledLoggerFinder { } static { - ServiceLoader.load(LoggerConfiguration.class).forEach(LoggerConfiguration::configure); + try { + ServiceLoader.load(LoggerConfiguration.class).forEach(LoggerConfiguration::configure); + } catch (Throwable t) { + System.err.println("Could not initialize LoggerConfiguration"); + t.printStackTrace(); + } } public HotswapLoggerFinder() {