@aichatwar/shared 1.0.106 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,9 +66,15 @@ class Listener {
|
|
|
66
66
|
topic: this.topic,
|
|
67
67
|
fromBeginning: false,
|
|
68
68
|
});
|
|
69
|
+
// Log success message, especially if there were previous retries
|
|
70
|
+
if (this.retryCount > 0) {
|
|
71
|
+
console.log(`✅ [${this.topic}] Successfully connected after ${this.retryCount} retry attempts. Listening with groupId: ${this.groupId}`);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
console.log(`✅ [${this.topic}] Successfully connected. Listening to topic with groupId: ${this.groupId}`);
|
|
75
|
+
}
|
|
69
76
|
// Reset retry count on successful connection
|
|
70
77
|
this.retryCount = 0;
|
|
71
|
-
console.log(`[${this.topic}] Listening to topic with groupId: ${this.groupId}`);
|
|
72
78
|
yield this.consumer.run({
|
|
73
79
|
eachMessage: (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
74
80
|
if (!payload.message.value)
|