@itentialopensource/adapter-kafkav2 0.24.0 → 0.24.1
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.
- package/adapter.js +2 -2
- package/package.json +1 -1
- package/utils/dbUtil.js +1 -1
package/adapter.js
CHANGED
|
@@ -649,7 +649,7 @@ class Kafkav2 extends AdapterBaseCl {
|
|
|
649
649
|
if (connectionInfo.isAlive) {
|
|
650
650
|
log.info('Connected to adapter database');
|
|
651
651
|
} else {
|
|
652
|
-
throw new Error('Could not connect to adapter database');
|
|
652
|
+
throw new Error('Could not connect to adapter database. Will continue without database persistence');
|
|
653
653
|
}
|
|
654
654
|
})
|
|
655
655
|
.then(async () => {
|
|
@@ -660,7 +660,7 @@ class Kafkav2 extends AdapterBaseCl {
|
|
|
660
660
|
})
|
|
661
661
|
.catch((err) => {
|
|
662
662
|
databaseIsAlive = false;
|
|
663
|
-
log.
|
|
663
|
+
log.warn(`${err.message || err}`);
|
|
664
664
|
this.allow_connect = true;
|
|
665
665
|
});
|
|
666
666
|
}
|
package/package.json
CHANGED
package/utils/dbUtil.js
CHANGED
|
@@ -745,7 +745,7 @@ class DBUtil {
|
|
|
745
745
|
if (useCallback) return callback(this.alive, mongoClient);
|
|
746
746
|
return { isAlive: this.alive, mongoClient };
|
|
747
747
|
} catch (err) {
|
|
748
|
-
log.debug(`${origin}:
|
|
748
|
+
log.debug(`${origin}: MongoDB connection not configured or unavailable, using file system for topic storage. ${err}`);
|
|
749
749
|
this.alive = false;
|
|
750
750
|
if (useCallback) return callback(this.alive, mongoClient);
|
|
751
751
|
return { isAlive: this.alive, mongoClient };
|