We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8487b72 commit 87ad5aaCopy full SHA for 87ad5aa
1 file changed
OpenFlow/src/DatabaseConnection.ts
@@ -40,6 +40,9 @@ export class DatabaseConnection {
40
return;
41
}
42
this.cli = await MongoClient.connect(this.mongodburl, { autoReconnect: false, useNewUrlParser: true });
43
+ this.cli.on("error", (error) => {
44
+ this._logger.error(error);
45
+ });
46
this.db = this.cli.db(this._dbname);
47
48
0 commit comments