Skip to content

Commit

Permalink
Mojo does not need to have a log file
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 8, 2014
1 parent 51b5de5 commit 013b95e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/Mojo.pm
Expand Up @@ -27,13 +27,8 @@ sub handler { Carp::croak 'Method "handler" not implemented in subclass' }

sub new {
my $self = shift->SUPER::new(@_);

# Check if we have a log directory
my $home = $self->home;
$home->detect(ref $self) unless @{$home->parts};
$self->log->path($home->rel_file('log/mojo.log'))
if -w $home->rel_file('log');

return $self;
}

Expand Down Expand Up @@ -154,9 +149,7 @@ be overloaded in a subclass.
my $app = Mojo->new;
Construct a new L<Mojo> application. Will automatically detect your home
directory if necessary and set up logging to C<log/mojo.log> if there's a
C<log> directory.
Construct a new L<Mojo> application.
=head1 SEE ALSO
Expand Down

0 comments on commit 013b95e

Please sign in to comment.