sodonnel commented on code in PR #5481:
URL: https://github.com/apache/ozone/pull/5481#discussion_r1371418889
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/DeleteBlocksCommandHandler.java:
##########
@@ -326,9 +326,13 @@ private void processCmd(DeleteCmdInfo cmd) {
DeletedContainerBlocksSummary summary =
DeletedContainerBlocksSummary.getFrom(containerBlocks);
- LOG.info("Start to delete container blocks, TXIDs={}, "
+ if (LOG.isDebugEnabled()) {
Review Comment:
Can we remove the `if (LOG.isDebugEnabled())` and just change the log
message to debug level, ie:
```
LOG.debug("Start to delete container blocks, TXIDs={}",
summary.getTxIDSummary());
```
Inside the logger, it applies the `if (LOG.isDebugEnabled())` so if we just
use a debug level log, then we can remove the extra if statement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]