native-mongo-util
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -81,4 +81,8 @@ const Log = require('logger3000').getLogger(__filename); | ||
this._db.on('close', () => { | ||
Log.debug({ msg: `DB lost connection: ${this.getDBName()}. Killing the process.` }); | ||
process.exit(1); | ||
if (this._closedCalled) { | ||
Log.debug({ msg: 'DB connection closed.' }); | ||
} else { | ||
Log.debug({ msg: `DB lost connection: ${this.getDBName()}. Killing the process.` }); | ||
process.exit(1); | ||
} | ||
}); | ||
@@ -106,2 +110,3 @@ | ||
close(force) { | ||
this._closedCalled = true; | ||
return this._client.close(force); | ||
@@ -108,0 +113,0 @@ } |
{ | ||
"name": "native-mongo-util", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11230
224