Skip to content

Commit

Permalink
more consistent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 20, 2014
1 parent 7f744b6 commit e29dbc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.09 2014-06-19
5.09 2014-06-20

5.08 2014-06-17
- Added reset method to Mojo::IOLoop.
Expand Down
6 changes: 2 additions & 4 deletions lib/Mojo/Log.pm
Expand Up @@ -38,17 +38,15 @@ sub append {
sub debug { shift->log(debug => @_) }
sub error { shift->log(error => @_) }
sub fatal { shift->log(fatal => @_) }

sub info { shift->log(info => @_) }
sub info { shift->log(info => @_) }

sub is_debug { shift->is_level('debug') }
sub is_error { shift->is_level('error') }
sub is_fatal { shift->is_level('fatal') }
sub is_info { shift->is_level('info') }

sub is_level {
my ($self, $level) = @_;
return $LEVEL->{lc $level} >= $LEVEL->{$ENV{MOJO_LOG_LEVEL} || $self->level};
$LEVEL->{lc pop} >= $LEVEL->{$ENV{MOJO_LOG_LEVEL} || shift->level};
}

sub is_warn { shift->is_level('warn') }
Expand Down

0 comments on commit e29dbc4

Please sign in to comment.