fix(logger): catch exception during configuration
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2024-03-14 15:36:26 +01:00
parent e38bb73f7c
commit b4ffad5c2c
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 6 additions and 1 deletions

View File

@ -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() {