Skip to content

Commit

Permalink
fix: enable for process.env.DEBUG if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Scheirlinck authored and dominics committed Jan 12, 2022
1 parent 21e5793 commit aee7492
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/command.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Command, flags as f } from '@oclif/command';
import debug from 'debug';

const log = debug('monofo:cmd');

export interface BaseFlags {
chdir?: string;
verbose: boolean;
Expand All @@ -29,7 +27,7 @@ export abstract class BaseCommand extends Command {
const { flags } = this.parse(BaseCommand);

if (flags?.verbose) {
debug.enable('monofo:*');
debug.enable(process.env?.DEBUG || 'monofo:*');
}

if (flags?.chdir) {
Expand Down

0 comments on commit aee7492

Please sign in to comment.