Skip to content

Commit

Permalink
Introduce RAKUDO_NO_DEPRECATIONS environment var
Browse files Browse the repository at this point in the history
Mainly intended to be used when running smoke tests
  • Loading branch information
lizmat committed May 29, 2014
1 parent 9443056 commit cfc0b38
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/Deprecations.pm
Expand Up @@ -80,10 +80,12 @@ sub DEPRECATED ($alternative, :$up = 1, :$what ) {
}

END {
if my $message = Deprecation.report {
note $message;
note "Please contact the author to have these calls to deprecated code adapted,";
note "so that this message will disappear!";
unless %*ENV<RAKUDO_NO_DEPRECATIONS> {
if Deprecation.report -> $message {
note $message;
note "Please contact the author to have these calls to deprecated code adapted,";
note "so that this message will disappear!";
}
}
}

Expand Down

0 comments on commit cfc0b38

Please sign in to comment.