Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 09f3acb

Browse files
committed
Slightly better logging
1 parent 1014aa1 commit 09f3acb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/kafka.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ class Kafka {
2525
this.consumer = new kafka.Consumer(this.client, [{topic: config.TOPIC, partition: config.PARTITION}], {autoCommit: true});
2626
this.consumer.setOffset(config.TOPIC, 0, 0);
2727
this.offset = new Offset(this.client);
28-
logger.info(`connecting on topic: ${config.TOPIC}`);
28+
logger.info(`Connecting on topic: ${config.TOPIC}`);
2929
}
3030

3131
run() {
3232
this.consumer.on('error', (err) => {
33-
logger.error(err);
33+
logger.error(`ERROR ${err}`);
3434
});
3535

3636
this.consumer.on('offsetOutOfRange', (topic) => {
37-
logger.debug(topic);
37+
logger.debug(`TOPIC ${topic}`);
3838
logger.info('offset OutOfRange. resetting.');
3939
this.offset.fetch([topic], (errOffsetFetch, offsets) => {
4040
if (errOffsetFetch) {

0 commit comments

Comments
 (0)