zk-drizzle commented on code in PR #1215:
URL: https://github.com/apache/rocketmq-clients/pull/1215#discussion_r3057600149


##########
nodejs/src/consumer/StandardConsumeService.ts:
##########
@@ -19,24 +19,37 @@ import { MessageView } from '../message';
 import { ConsumeService } from './ConsumeService';
 import { MessageListener } from './MessageListener';
 import type { ProcessQueue } from './ProcessQueue';
+import { getDefaultLogger } from '../client';
 
 export class StandardConsumeService extends ConsumeService {
+  private readonly logger = getDefaultLogger();
+
+  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
   constructor(clientId: string, messageListener: MessageListener) {
     super(clientId, messageListener);
   }
 
   consume(pq: ProcessQueue, messageViews: MessageView[]): void {
+    this.logger.info('StandardConsumeService.consume called, messageCount=%d', 
messageViews.length);

Review Comment:
   We should reduce the frequency of these logs.



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