Skip to content

Commit

Permalink
Changed debug to be look at ENV WATSON_DEBUG
Browse files Browse the repository at this point in the history
Can now use export WATSON_DEBUG=1 or set WATSON_DEBUG=1
to enable/disable debug printing
  • Loading branch information
nhmood committed Nov 22, 2013
1 parent 3d5d69b commit 30f1d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watson
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ use Data::Dumper;
use Digest::MD5 qw(md5_hex);

# App Config
my $DEBUG = 0;
my $DEBUG = $ENV{WATSON_DEBUG};
my $RCNAME = ".watsonrc"; # Change config file name
my $TMPOUT = ".watsonresults"; # Change tmp file name

Expand Down

1 comment on commit 30f1d22

@kthakore
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AWESOME!

Please sign in to comment.