Skip to content

Commit d5b223b

Browse files
committed
refactor: simplify YAML parsing error log by removing configuration details
1 parent 9693f54 commit d5b223b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

annot/src/main/java/com/predic8/membrane/annot/yaml/GenericYamlParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public static <T> T createAndPopulateNode(ParsingContext ctx, Class<T> clazz, Js
191191
catch (NoClassDefFoundError e) {
192192
if (e.getCause() != null) {
193193
var missingClass = e.getCause().getMessage(); // TODO: Better use ExceptionUtil.getRootCause() but it isn't visible in annot.
194-
var msg = "Could not create bean with class: %s\nMissing class: %s\nConfiguration: %s".formatted(clazz, missingClass, node);
194+
var msg = "Could not create bean with class: %s\nMissing class: %s\n".formatted(clazz, missingClass);
195195
log.error(msg);
196196
throw new ParsingException(msg, node); // TODO: Cause we know the reason, shorten output.
197197
}

0 commit comments

Comments
 (0)