We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a757a95 commit 908d8b2Copy full SHA for 908d8b2
log4j2-ecs-layout/src/main/java/co/elastic/logging/log4j2/MdcSerializerResolver.java
@@ -40,7 +40,7 @@ static MdcSerializer resolve(String mdcSerializerFullClassName) {
40
Class<?> clazz = Class.forName(mdcSerializerFullClassName);
41
return (MdcSerializer) clazz.getDeclaredConstructor().newInstance();
42
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | NoSuchMethodException |
43
- InvocationTargetException e) {
+ InvocationTargetException | RuntimeException e) { //RuntimeException added because of bizarre build issue
44
throw new IllegalArgumentException("Could not create MdcSerializer " + mdcSerializerFullClassName, e);
45
}
46
0 commit comments