zk-drizzle commented on code in PR #1215:
URL: https://github.com/apache/rocketmq-clients/pull/1215#discussion_r3057862545
##########
nodejs/src/producer/Producer.ts:
##########
@@ -302,6 +318,11 @@ export class Producer extends BaseClient {
this.logger.info('Resend message successfully, topic=%s,
messageId(s)=%s, maxAttempts=%d, attempt=%d, endpoints=%s, clientId=%s',
topic, messageIds, maxAttempts, attempt, endpoints, this.clientId);
}
+ // Log Lite Topic message sent successfully
+ if (sendReceipts.length > 0 && messages[0].liteTopic) {
+ this.logger.info('Lite Topic message sent successfully, topic=%s,
liteTopic=%s, messageId=%s, clientId=%s',
Review Comment:
Logs are printing too often.
##########
nodejs/src/producer/Producer.ts:
##########
@@ -207,11 +216,18 @@ export class Producer extends BaseClient {
const topic = pubMessages[0].topic;
const messageType = pubMessages[0].messageType;
const messageGroup = pubMessages[0].messageGroup;
+ const liteTopic = pubMessages[0].liteTopic;
const messageTypes = new Set(pubMessages.map(m => m.messageType));
if (messageTypes.size > 1) {
throw new TypeError(`Messages to send have different
types=${JSON.stringify(Array.from(messageTypes))}`);
}
+ // Log Lite Topic message sending
+ if (liteTopic) {
Review Comment:
Logs are printing too often.
--
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]