Skip to content

Commit 6b8dad7

Browse files
committed
Only log errors in verbose mode
1 parent 75cf004 commit 6b8dad7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/sqlitestore.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ SQLiteStore.prototype.close = function () {
7373
return P.delay(1000)
7474
.then(function() { return self.db.closeAsync(); })
7575
.catch(function(e) {
76-
console.error(e);
76+
if (self.options.verbose) {
77+
console.error(e);
78+
}
7779
});
7880
};
7981

0 commit comments

Comments
 (0)