From 5f7ed289deb9a15f65bfc1084ee0cbf827141785 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 28 Apr 2014 18:55:09 -0400 Subject: [PATCH] print stack on db error --- src/database/level.js | 3 +-- src/database/redis.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/database/level.js b/src/database/level.js index a3cec2ef49..f06fc8e4f0 100644 --- a/src/database/level.js +++ b/src/database/level.js @@ -53,8 +53,7 @@ leveldown(nconf.get('level:database')); db.on('error', function (err) { - winston.error(err.message); - process.exit(); + winston.error(err.stack); }); module.client = db; diff --git a/src/database/redis.js b/src/database/redis.js index ea73f929bb..aaa8c7d0ac 100644 --- a/src/database/redis.js +++ b/src/database/redis.js @@ -64,8 +64,7 @@ } redisClient.on('error', function (err) { - winston.error(err.message); - process.exit(); + winston.error(err.stack); }); module.client = redisClient;