Skip to content

Commit 81955b8

Browse files
committed
fixed log message output for WoT validation errors
1 parent 95267a0 commit 81955b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wot/api/src/main/java/org/eclipse/ditto/wot/api/validator/DefaultWotThingModelValidator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ private static void logValidationWarning(final boolean logAsWarning,
612612
final LoggingEventBuilder logBuilder = logAsWarning ? log.atWarn() : log.atInfo();
613613
logBuilder.log("WoT based validation of Thing <{}> in <{}()> failed for <TD {}>/<FD {}> due to: <{}>",
614614
context.thingId(), loggingHintSource, context.thingDefinition(), context.featureDefinition(),
615-
throwable.getMessage()
615+
throwable.toString()
616616
);
617617
dittoHeaders.getCorrelationId().ifPresent(cId -> MDC.remove("correlation-id"));
618618
dittoHeaders.getTraceParent().ifPresent(traceParent -> MDC.remove("traceparent-trace-id"));

0 commit comments

Comments
 (0)