Skip to content

Commit

Permalink
perf: log improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 7, 2020
1 parent b5a9ae7 commit c45dccc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/debug.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const get = require("lodash.get");
const getLogger = require("./getLogger");
const logger = getLogger({ stdout: process.stdout, stderr: process.stderr });

let opts;

const createDebugger = prefix => (...input) => {
const getLogger = require("./getLogger");
const logger = getLogger({ stdout: process.stdout, stderr: process.stderr });

// if (get(opts, prefix || "")) {
console.log(...input);
return logger.log(...input);
// }
};
Expand Down

0 comments on commit c45dccc

Please sign in to comment.