Skip to content

Commit

Permalink
fixed log message output for WoT validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeckle committed Jan 10, 2025
1 parent 95267a0 commit 81955b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ private static void logValidationWarning(final boolean logAsWarning,
final LoggingEventBuilder logBuilder = logAsWarning ? log.atWarn() : log.atInfo();
logBuilder.log("WoT based validation of Thing <{}> in <{}()> failed for <TD {}>/<FD {}> due to: <{}>",
context.thingId(), loggingHintSource, context.thingDefinition(), context.featureDefinition(),
throwable.getMessage()
throwable.toString()
);
dittoHeaders.getCorrelationId().ifPresent(cId -> MDC.remove("correlation-id"));
dittoHeaders.getTraceParent().ifPresent(traceParent -> MDC.remove("traceparent-trace-id"));
Expand Down

0 comments on commit 81955b8

Please sign in to comment.