fix(logger): catch exception during configuration
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
e38bb73f7c
commit
b4ffad5c2c
|
@ -57,7 +57,12 @@ public class HotswapLoggerFinder extends LeveledLoggerFinder {
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
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() {
|
public HotswapLoggerFinder() {
|
||||||
|
|
Loading…
Reference in New Issue