Skip to content

Commit

Permalink
fix subroutine order
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 26, 2015
1 parent 4f5c1b3 commit 35c697d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Log.pm
Expand Up @@ -51,11 +51,9 @@ sub new {
sub warn { shift->_log(warn => @_) }

sub _format {
'[' . localtime(shift) . '] [' . shift() . '] ' . join("\n", @_, '');
'[' . localtime(shift) . '] [' . shift() . '] ' . join "\n", @_, '';
}

sub _now { $LEVEL->{pop()} >= $LEVEL->{$ENV{MOJO_LOG_LEVEL} || shift->level} }

sub _log { shift->emit('message', shift, @_) }

sub _message {
Expand All @@ -71,6 +69,8 @@ sub _message {
$self->append($self->format->(@$msg));
}

sub _now { $LEVEL->{pop()} >= $LEVEL->{$ENV{MOJO_LOG_LEVEL} || shift->level} }

1;

=encoding utf8
Expand Down

0 comments on commit 35c697d

Please sign in to comment.