diff --git a/bin/runner.js b/bin/runner.js index 8f4e8862..b746f023 100644 --- a/bin/runner.js +++ b/bin/runner.js @@ -1,7 +1,12 @@ const get = require("lodash.get"); module.exports = flags => { + const getLogger = require("./getLogger"); + const logger = getLogger({ stdout: process.stdout, stderr: process.stderr }); const debug = require("../lib/debug"); + + logger.log("flags=", flags); + debug.config(flags.debug); if (flags.watchspawn || get(flags, "debug.spawn")) { diff --git a/lib/debug.js b/lib/debug.js index 841aba03..e89726e5 100644 --- a/lib/debug.js +++ b/lib/debug.js @@ -1,9 +1,6 @@ const get = require("lodash.get"); const getLogger = require("./getLogger"); -const logger = getLogger({ - stdout: process.stdout, - stderr: process.stderr -}); +const logger = getLogger({ stdout: process.stdout, stderr: process.stderr }); let opts;