Github user vongosling commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/53#discussion_r101980234
  
    --- Diff: 
broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java
 ---
    @@ -442,6 +449,202 @@ private RemotingCommand sendMessage(final 
ChannelHandlerContext ctx, //
             return response;
         }
     
    +    private RemotingCommand sendBatchMessage(final ChannelHandlerContext 
ctx, //
    +                                        final RemotingCommand request, //
    +                                        final SendMessageContext 
sendMessageContext, //
    +                                        final SendMessageRequestHeader 
requestHeader) throws RemotingCommandException {
    +
    +        final RemotingCommand response = 
RemotingCommand.createResponseCommand(SendMessageResponseHeader.class);
    +        final SendMessageResponseHeader responseHeader = 
(SendMessageResponseHeader) response.readCustomHeader();
    +
    +
    +        response.setOpaque(request.getOpaque());
    +
    +        response.addExtField(MessageConst.PROPERTY_MSG_REGION, 
this.brokerController.getBrokerConfig().getRegionId());
    +        response.addExtField(MessageConst.PROPERTY_TRACE_SWITCH, 
String.valueOf(this.brokerController.getBrokerConfig().isTraceOn()));
    +
    +        if (log.isDebugEnabled()) {
    --- End diff --
    
    IMO, we can remove redundant expression isDebugEnabled here. Also please 
capitalize the first letter in log output


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to