BewareMyPower commented on issue #9796:
URL: https://github.com/apache/pulsar/issues/9796#issuecomment-791121843


   You can modify the callback and retry to check if the issue is caused by 
`LOG_INFO`. Here're some callbacks that you can try.
   
   For example,
   
   ```c++
   // An empty callback
   void callback(Result code, const MessageId& msgId) {
   }
   ```
   
   ```c++
   // Access fields of `msgId` instead the `msgId` itself
   void callback(Result code, const MessageId& msgId) {
       LOG_INFO("Received code: " << code << " -- MsgID: " << msgId.ledgerId() 
<< ", " << msgId.entryId() << ", "
                                  << msgId.partition() << ", " << 
msgId.batchIndex());
   }
   ```
   
   ```c++
   // Use `std::cout` instead of `LOG_INFO`
   void callback(Result code, const MessageId& msgId) {
       std::cout << "Result: " << code << ", msgId: " << msgId << std::endl;
   }
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to