charlely commented on code in PR #6881:
URL: https://github.com/apache/inlong/pull/6881#discussion_r1048211446


##########
inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/example/consumer/test_consumer.cc:
##########
@@ -113,16 +113,8 @@ int main(int argc, char* argv[]) {
       consumer_1.Confirm(gentRet.GetConfirmContext(), true, confirm_result);
     } else {
       // 2.2.1 if failure, check error code
-      // print error message if errcode not in
-      // [no partitions assigned, all partitions in use,
-      //    or all partitons idle, reach max position]
-      if (!(gentRet.GetErrCode() == err_code::kErrNotFound
-        || gentRet.GetErrCode() == err_code::kErrNoPartAssigned
-        || gentRet.GetErrCode() == err_code::kErrAllPartInUse
-        || gentRet.GetErrCode() == err_code::kErrAllPartWaiting)) {
-        printf("\n GetMessage failure, err_code=%d, err_msg is: %s ",
-          gentRet.GetErrCode(), gentRet.GetErrMessage().c_str());
-      }
+      printf("\n GetMessage failure, err_code=%d, err_msg is: %s ",

Review Comment:
   Good idea, but cann't use printf to log.



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

Reply via email to