From: Marius Gavrilescu Date: Fri, 27 Mar 2015 18:10:04 +0000 (+0200) Subject: Remove access logging X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=93c81af3918c6e7478f3340a97ea2f2a3f0dd253;p=plack-app-gruntmaster.git Remove access logging --- diff --git a/app.psgi b/app.psgi index f7c85ff..1181e13 100644 --- a/app.psgi +++ b/app.psgi @@ -9,7 +9,6 @@ use Plack::Util; use Log::Log4perl; use constant AUTH_TIMEOUT => 5 * 60; -use constant ACCESSLOG_FORMAT => 'combined'; sub CONTENT_SECURITY_POLICY () { my $csp = <init_once('log.conf'); -my $access_logger = Log::Log4perl->get_logger('access'); $ENV{DBIC_NULLABLE_KEY_NOWARN} = 1; builder { enable_if { $_[0]->{PATH_INFO} eq '/ok' } sub { sub{ [200, [], []] }}; - enable 'AccessLog', format => ACCESSLOG_FORMAT, logger => sub { $access_logger->info(@_) }; enable 'ContentLength'; enable \&add_headers; enable 'Static', path => qr,^/static/,; diff --git a/log.conf b/log.conf index bc559ff..1f31323 100644 --- a/log.conf +++ b/log.conf @@ -1,10 +1,5 @@ log4perl.category. = TRACE, -log4perl.category.access = INFO, accesslog log4perl.appender.stderr = Log::Log4perl::Appender::Screen log4perl.appender.stderr.layout = Log::Log4perl::Layout::PatternLayout log4perl.appender.stderr.layout.ConversionPattern = [%d] [%F{1}:%M{1}:%L] [%p] %m%n - -log4perl.appender.accesslog = Log::Log4perl::Appender::Screen -log4perl.appender.accesslog.layout = Log::Log4perl::Layout::PatternLayout -log4perl.appender.accesslog.layout.ConversionPattern = %m%n