Skip to content

Commit

Permalink
better log directory test (closes #705)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 11, 2014
1 parent aa3c6bb commit 1abeb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious.pm
Expand Up @@ -168,10 +168,10 @@ sub new {
# DEPRECATED in Tiger Face!
$r->hide('render_static');

# Check if we have a log directory
# Check if we have a log directory that is writable
my $mode = $self->mode;
$self->log->path($home->rel_file("log/$mode.log"))
if -w $home->rel_file('log');
if -d $home->rel_file('log') && -w _;

$self->plugin($_)
for qw(HeaderCondition DefaultHelpers TagHelpers EPLRenderer EPRenderer);
Expand Down

0 comments on commit 1abeb21

Please sign in to comment.