From aed3fb0e06418a01a31e96bb7570e5ae88684440 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 11 Oct 2013 11:48:12 -0700 Subject: [PATCH] Log more information for the connection failure --- lib/datasource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datasource.js b/lib/datasource.js index 1854cdee..113f7b37 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -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; }