Skip to content

Commit 908d8b2

Browse files
authored
Update MdcSerializerResolver.java (#321)
1 parent a757a95 commit 908d8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log4j2-ecs-layout/src/main/java/co/elastic/logging/log4j2/MdcSerializerResolver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static MdcSerializer resolve(String mdcSerializerFullClassName) {
4040
Class<?> clazz = Class.forName(mdcSerializerFullClassName);
4141
return (MdcSerializer) clazz.getDeclaredConstructor().newInstance();
4242
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | NoSuchMethodException |
43-
InvocationTargetException e) {
43+
InvocationTargetException | RuntimeException e) { //RuntimeException added because of bizarre build issue
4444
throw new IllegalArgumentException("Could not create MdcSerializer " + mdcSerializerFullClassName, e);
4545
}
4646
}

0 commit comments

Comments
 (0)