Skip to content

Commit 54bdc0d

Browse files
authored
[fix] Change log level to debug when check parameters in BatchRead. (#4485)
* Change log level to debug when check parameters in BatchRead.
1 parent 07de650 commit 54bdc0d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java

+8-4
Original file line numberDiff line numberDiff line change
@@ -956,13 +956,17 @@ private CompletableFuture<LedgerEntries> batchReadEntriesInternalAsync(long star
956956
boolean isRecoveryRead) {
957957
int nettyMaxFrameSizeBytes = clientCtx.getConf().nettyMaxFrameSizeBytes;
958958
if (maxSize > nettyMaxFrameSizeBytes) {
959-
LOG.info(
960-
"The max size is greater than nettyMaxFrameSizeBytes, use nettyMaxFrameSizeBytes:{} to replace it.",
961-
nettyMaxFrameSizeBytes);
959+
if (LOG.isDebugEnabled()) {
960+
LOG.debug("The max size is greater than nettyMaxFrameSizeBytes, "
961+
+ "use nettyMaxFrameSizeBytes:{} to replace it.", nettyMaxFrameSizeBytes);
962+
}
962963
maxSize = nettyMaxFrameSizeBytes;
963964
}
964965
if (maxSize <= 0) {
965-
LOG.info("The max size is negative, use nettyMaxFrameSizeBytes:{} to replace it.", nettyMaxFrameSizeBytes);
966+
if (LOG.isDebugEnabled()) {
967+
LOG.debug("The max size is negative, use nettyMaxFrameSizeBytes:{} to replace it.",
968+
nettyMaxFrameSizeBytes);
969+
}
966970
maxSize = nettyMaxFrameSizeBytes;
967971
}
968972
BatchedReadOp op = new BatchedReadOp(this, clientCtx,

0 commit comments

Comments
 (0)