From e3178e5fa434557074c28b551681596d17f3f5dd Mon Sep 17 00:00:00 2001 From: Nick Farina Date: Wed, 4 Nov 2015 04:31:52 -0800 Subject: [PATCH] Fix -D flag Fixes #376 --- lib/cli.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.js b/lib/cli.js index 5b533c5..cd75276 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -13,7 +13,7 @@ module.exports = function() { program .version(version) .option('-P, --plugin-path [path]', 'look for plugins installed at [path] as well as the default locations ([path] can also point to a single plugin)', function(p) { Plugin.addPluginPath(p); }) - .option('-D, --debug', 'turn on debug level logging', function() { logger.setDebugEnabled(true) }) + .option('-D, --debug', 'turn on debug level logging', function() { require('./logger').setDebugEnabled(true) }) .parse(process.argv); // Initialize HAP-NodeJS with a custom persist directory diff --git a/package.json b/package.json index 45d6a78..a80de62 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "HomeKit support for the impatient", "version": "0.2.1", "scripts": { - "dev": "DEBUG=* ./bin/homebridge -P example-plugins/ || true" + "dev": "DEBUG=* ./bin/homebridge -D -P example-plugins/ || true" }, "author": { "name": "Nick Farina"