jonswar / perl-poet

Perl Poet distribution
30 stars 12 forks source link

Bug in Poet::Server causes no logging in "production" mode. #8

Closed jomo666 closed 9 years ago

jomo666 commented 9 years ago

Setting layer: production runs the Plack::Runner with wrong argument, what causes no access_log is created in the ${poet_root}/logs.

Fix the typo in the Poet::Server:

+++ ./Server.pm 2014-12-14 11:48:47.000000000 +0100
@@ -32,7 +32,7 @@

         # In live mode, use access log instead of STDERR
         #
-        push( @options, '--access_log', $poet->logs_path("access.log") );
+        push( @options, '--access-log', $poet->logs_path("access.log") );
     }

     return @options;

The bug is critical, because is impossible to run Poet in production mode, with default Poet install from the CPAN.

jonswar commented 9 years ago

fixed in next release