From 035c42eb9dc10dff6da742dd9c3678855f14ddef Mon Sep 17 00:00:00 2001 From: Dominik Krejcik Date: Thu, 29 Nov 2012 01:33:19 +0000 Subject: [PATCH] Log Redis connection errors instead of crashing --- lib/adapters/redis2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/adapters/redis2.js b/lib/adapters/redis2.js index a6a344a6..ab8ff0ab 100644 --- a/lib/adapters/redis2.js +++ b/lib/adapters/redis2.js @@ -42,6 +42,9 @@ exports.initialize = function initializeSchema(schema, callback) { } } }); + schema.client.on('error', function (error) { + console.log(error); + }) var clientWrapper = new Client(schema.client);