Skip to content

Commit

Permalink
perf: log multi-sem-rel flags
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 7, 2020
1 parent 5840ce1 commit 75389e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions bin/runner.js
Original file line number Diff line number Diff line change
@@ -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")) {
Expand Down
5 changes: 1 addition & 4 deletions lib/debug.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 75389e0

Please sign in to comment.