Skip to content

Commit

Permalink
Fix deprecated message for is_$level()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Henning Thorsen committed Mar 21, 2016
1 parent 9a9965e commit 0ac1f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -26,7 +26,8 @@ my %LEVEL = (debug => 1, info => 2, warn => 3, error => 4, fatal => 5);
# DEPRECATED!
for my $name (qw(debug error info warn)) {
monkey_patch __PACKAGE__, "is_$name", sub {
deprecated "Mojo::Log::$name is DEPRECATED in favor of Mojo::Log::is_level";
deprecated
"Mojo::Log::is_$name is DEPRECATED in favor of Mojo::Log::is_level";
shift->is_level($name);
};
}
Expand Down

0 comments on commit 0ac1f6f

Please sign in to comment.