Skip to content

Commit

Permalink
log commit and rebalance events
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerkesni committed Sep 28, 2023
1 parent 761cf0d commit 1137b8f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/BackbeatConsumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,21 @@ class BackbeatConsumer extends EventEmitter {
}
});
});

this._consumer.on('rebalance', (err, topicPartition) => {
this._log.debug('rebalance', {
err,
topicPartition,
});
});

this._consumer.on('offset.commit', (err, topicPartition) => {
this._log.debug('offset.commit', {
err,
topicPartition,
});
});

return this._consumer.once('ready', () => {
this._consumerReady = true;
this._checkIfReady();
Expand Down

0 comments on commit 1137b8f

Please sign in to comment.