Skip to content

Commit

Permalink
Merge branch 'logger-refactor' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykas committed Jun 20, 2020
2 parents 503abbb + 178e6a5 commit 31da380
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/detect-node-support
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ Options:

exports.main = async ({ _: [what], deps, deep, dev, json }) => {

Debug.enable('detect-node-support:warn:*,detect-node-support:error:*');
const enabledLogs = ['detect-node-support:warn:*', 'detect-node-support:error:*'];

if (process.env.DEBUG) {
enabledLogs.push(process.env.DEBUG);
}

Debug.enable(enabledLogs.join(','));

if (!what) {
console.log(internals.help());
Expand Down

0 comments on commit 31da380

Please sign in to comment.