Skip to content

Commit d235137

Browse files
committed
Add natives condition for logging when no header mapper
1 parent 4e2029d commit d235137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/support/converter/BatchMessagingMessageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public Message<?> toMessage(List<ConsumerRecord<?, ?>> records, @Nullable Acknow
184184
raws.add(record);
185185
}
186186
}
187-
if (this.headerMapper == null) {
187+
if (this.headerMapper == null && !natives.isEmpty()) {
188188
this.logger.debug(() ->
189189
"No header mapper is available; Jackson is required for the default mapper; "
190190
+ "headers (if present) are not mapped but provided raw in "

0 commit comments

Comments
 (0)