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

Commit 75ead2d

Browse files
committed
Adding logging from the health check
1 parent 017f83c commit 75ead2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/kafka.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ class Kafka {
6666
// check if there is kafka connection alive
6767
check() {
6868
if (!this.consumer.client.initialBrokers && !this.consumer.client.initialBrokers.length) {
69+
logger.info(`Brokers Exist Check Failed ${this.consumer.client.initialBrokers} ${this.consumer.client.initialBrokers.length}`)
6970
return false;
7071
}
7172
let connected = true;
7273
this.consumer.client.initialBrokers.forEach((conn) => {
74+
logger.info(`Brokers Check Failed ${JSON.stringify(conn)}`)
7375
connected = conn.connected && connected;
7476
});
7577

0 commit comments

Comments
 (0)