Log more information for the connection failure

This commit is contained in:
Raymond Feng 2013-10-11 11:48:12 -07:00
parent 64f57a2297
commit aed3fb0e06
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ DataSource.prototype.setup = function(name, settings) {
this.emit('connected');
} else {
// The connection fails, let's report it and hope it will be recovered in the next call
console.error(err);
console.error('Connection fails: ', err, '\nIt will be retried for the next request.');
this.connecting = false;
}