From c6a8a6b54263d479ef3ee9c1d51024f285fe0ad0 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Sat, 18 Jun 2016 16:44:15 +0300 Subject: [PATCH] add plugin loading debug --- lib/plugins.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugins.js b/lib/plugins.js index 54644285..73d01813 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -84,6 +84,7 @@ function loadPlugin (name, config) { try { plugin = require('lamassu-' + name) } catch (err) { + logger.debug(err.stack) if (err.code === 'MODULE_NOT_FOUND') { throw new Error(name + ' module is not installed. ' + 'Try running \'npm install --save lamassu-' + name + '\' first')