File tree 1 file changed +4
-3
lines changed
storage/src/main/java/org/apache/kafka/storage/internals/log
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -467,9 +467,10 @@ public FetchDataInfo read(long startOffset,
467
467
return maybeHandleIOException (
468
468
() -> "Exception while reading from " + topicPartition + " in dir " + dir .getParent (),
469
469
() -> {
470
- logger .trace ("Reading maximum {} bytes at offset {} from log with total length {} bytes" ,
471
- maxLength , startOffset , segments .sizeInBytes ());
472
-
470
+ if (logger .isTraceEnabled ()) {
471
+ logger .trace ("Reading maximum {} bytes at offset {} from log with total length {} bytes" ,
472
+ maxLength , startOffset , segments .sizeInBytes ());
473
+ }
473
474
LogOffsetMetadata endOffsetMetadata = nextOffsetMetadata ;
474
475
long endOffset = endOffsetMetadata .messageOffset ;
475
476
Optional <LogSegment > segmentOpt = segments .floorSegment (startOffset );
You can’t perform that action at this time.
0 commit comments