Skip to content

Commit

Permalink
Tidies MetaCPAN::Role::Common.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Jan 15, 2014
1 parent 473b22a commit fe0454b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/MetaCPAN/Role/Common.pm
Expand Up @@ -108,9 +108,10 @@ sub _build_logger {
my $layout = Log::Log4perl::Layout::PatternLayout->new( $c->{layout}
|| "%d %p{1} %c: %m{chomp}%n" );

if( $c->{class} =~ /Appender::File$/ && $c->{filename} ){
if ( $c->{class} =~ /Appender::File$/ && $c->{filename} ) {

# Create the log file's parent directory if necessary.
Path::Class::File->new($c->{filename})->parent->mkpath;
Path::Class::File->new( $c->{filename} )->parent->mkpath;
}

my $app = Log::Log4perl::Appender->new( $c->{class}, %$c );
Expand Down

0 comments on commit fe0454b

Please sign in to comment.