Skip to content

Commit

Permalink
[DEBUG] add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerkesni committed Oct 10, 2024
1 parent 728b7a7 commit d1b659e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/BackbeatConsumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -998,11 +998,13 @@ class BackbeatConsumer extends EventEmitter {
* @return {undefined}
*/
close(cb) {
this._log.debug('closing consumer', { topic: this._topic, groupId: this._groupId });
if (this._publishOffsetsCronTimer) {
clearInterval(this._publishOffsetsCronTimer);
this._publishOffsetsCronTimer = null;
}
if (this._publishOffsetsCronActive) {
this._log.debug('publish offset cron still active', { topic: this._topic, groupId: this._groupId });
return setTimeout(() => this.close(cb), 1000);
}
this._circuitBreaker.stop();
Expand Down
6 changes: 6 additions & 0 deletions lib/queuePopulator/QueuePopulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ class QueuePopulator {
method: 'QueuePopulator.close',
});
return next();
},
next => {
this.log.debug('closed everything', {
method: 'QueuePopulator.close',
});
return next();
}
], cb);
}
Expand Down

0 comments on commit d1b659e

Please sign in to comment.