Skip to content

Commit

Permalink
Fix BackbeatProducer event.error handlers set twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Sep 3, 2024
1 parent e7d6e10 commit 8ce8889
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/BackbeatProducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class BackbeatProducer extends EventEmitter {
this._producer.on('event', event => this._log.info('rdkafka.event', { event }));
this._producer.on('event.log', log => this._log.info('rdkafka.log', { log }));
this._producer.on('warning', warning => this._log.warn('rdkafka.warning', { warning }));
this._producer.on('event.error', err => this._log.error('rdkafka.error', { err }));
this._producer.on('event.throttle', throttle => this._log.info('rdkafka.throttle', { throttle }));
this._producer.on('event.stats', observeKafkaStats);

Expand Down

0 comments on commit 8ce8889

Please sign in to comment.