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"