Skip to content

Commit

Permalink
Improved TEST_VERBOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Feb 9, 2024
1 parent 91dfc4f commit 2d30012
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions t/lib/MyLogger.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ sub new {

sub warn {
my $self = shift;
my $message = shift;

::diag($message);
::diag(@_);
}

# sub info {
Expand All @@ -34,10 +33,9 @@ sub warn {

sub trace {
my $self = shift;
my $message = shift;

if($ENV{'TEST_VERBOSE'}) {
::diag($message);
::diag(@_);
}
}

Expand Down

0 comments on commit 2d30012

Please sign in to comment.