diff --git a/src/database.js b/src/database.js index 15df7e49d..dc9e09681 100644 --- a/src/database.js +++ b/src/database.js @@ -84,6 +84,8 @@ function reconnect(callback) { return setTimeout(reconnect.bind(null, callback), 10000); } + debug('reconnect: connected to database'); + connection.on('error', function (error) { // by design, we catch all normal errors by providing callbacks. // this function should be invoked only when we have no callbacks pending and we have a fatal error