Skip to content

Commit 31da380

Browse files
committed
Merge branch 'logger-refactor' into alpha
2 parents 503abbb + 178e6a5 commit 31da380

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/detect-node-support

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ Options:
3131

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

34-
Debug.enable('detect-node-support:warn:*,detect-node-support:error:*');
34+
const enabledLogs = ['detect-node-support:warn:*', 'detect-node-support:error:*'];
35+
36+
if (process.env.DEBUG) {
37+
enabledLogs.push(process.env.DEBUG);
38+
}
39+
40+
Debug.enable(enabledLogs.join(','));
3541

3642
if (!what) {
3743
console.log(internals.help());

0 commit comments

Comments
 (0)