Bug 813833 - Part 2: Add additional logging around connection close; r=trivial

This commit is contained in:
Gregory Szorc 2013-01-06 21:26:49 -08:00
parent d7cdfb93bf
commit 5c3b96ccdb

View File

@ -249,6 +249,8 @@ OpenedConnection.prototype = Object.freeze({
return Promise.resolve();
}
this._log.debug("Closing.");
// Abort in-progress transaction.
if (this._inProgressTransaction) {
this._log.warn("Transaction in progress at time of close.");
@ -285,6 +287,7 @@ OpenedConnection.prototype = Object.freeze({
let deferred = Promise.defer();
this._log.debug("Calling asyncClose().");
this._connection.asyncClose({
complete: function () {
this._log.info("Closed");