View | Details | Raw Unified | Return to bug 16357
Collapse All | Expand All

(-)a/debian/control (+2 lines)
Lines 110-115 Build-Depends: libalgorithm-checkdigits-perl, Link Here
110
 libpdf-reuse-barcode-perl,
110
 libpdf-reuse-barcode-perl,
111
 libpdf-reuse-perl,
111
 libpdf-reuse-perl,
112
 libpdf-table-perl,
112
 libpdf-table-perl,
113
 libplack-middleware-logwarn-perl,
113
 libplack-middleware-reverseproxy-perl,
114
 libplack-middleware-reverseproxy-perl,
114
 libppi-perl,
115
 libppi-perl,
115
 libreadonly-perl,
116
 libreadonly-perl,
Lines 344-349 Depends: libalgorithm-checkdigits-perl, Link Here
344
 libpdf-reuse-barcode-perl,
345
 libpdf-reuse-barcode-perl,
345
 libpdf-reuse-perl,
346
 libpdf-reuse-perl,
346
 libpdf-table-perl,
347
 libpdf-table-perl,
348
 libplack-middleware-logwarn-perl,
347
 libplack-middleware-reverseproxy-perl,
349
 libplack-middleware-reverseproxy-perl,
348
 libppi-perl,
350
 libppi-perl,
349
 libreadonly-perl,
351
 libreadonly-perl,
(-)a/debian/templates/log4perl-site.conf.in (+8 lines)
Lines 37-39 log4perl.appender.SIP.mode=append Link Here
37
log4perl.appender.SIP.layout=PatternLayout
37
log4perl.appender.SIP.layout=PatternLayout
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
39
log4perl.appender.SIP.utf8=1
39
log4perl.appender.SIP.utf8=1
40
41
log4perl.logger.plack = WARN, PLACK
42
log4perl.appender.PLACK=Log::Log4perl::Appender::Screen
43
log4perl.appender.PLACK.stderr = 1
44
log4perl.appender.PLACK.mode=append
45
log4perl.appender.PLACK.layout=PatternLayout
46
log4perl.appender.PLACK.layout.ConversionPattern=[%d] [%p] %m
47
log4perl.appender.PLACK.utf8=1
(-)a/debian/templates/plack.psgi (+5 lines)
Lines 36-41 use Koha::Caches; Link Here
36
use Koha::Cache::Memory::Lite;
36
use Koha::Cache::Memory::Lite;
37
use Koha::Database;
37
use Koha::Database;
38
use Koha::DateUtils;
38
use Koha::DateUtils;
39
use Koha::Logger;
39
40
40
use CGI qw(-utf8 ); # we will loose -utf8 under plack, otherwise
41
use CGI qw(-utf8 ); # we will loose -utf8 under plack, otherwise
41
{
42
{
Lines 65-73 my $apiv1 = builder { Link Here
65
    $server->to_psgi_app;
66
    $server->to_psgi_app;
66
};
67
};
67
68
69
Koha::Logger->get;
70
68
builder {
71
builder {
69
    enable "ReverseProxy";
72
    enable "ReverseProxy";
70
    enable "Plack::Middleware::Static";
73
    enable "Plack::Middleware::Static";
74
    enable "Log4perl", category => "plack";
75
    enable "LogWarn";
71
76
72
    # + is required so Plack doesn't try to prefix Plack::Middleware::
77
    # + is required so Plack doesn't try to prefix Plack::Middleware::
73
    enable "+Koha::Middleware::SetEnv";
78
    enable "+Koha::Middleware::SetEnv";
(-)a/etc/log4perl.conf (-1 / +8 lines)
Lines 37-39 log4perl.appender.SIP.mode=append Link Here
37
log4perl.appender.SIP.layout=PatternLayout
37
log4perl.appender.SIP.layout=PatternLayout
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
39
log4perl.appender.SIP.utf8=1
39
log4perl.appender.SIP.utf8=1
40
- 
40
41
log4perl.logger.plack = WARN, PLACK
42
log4perl.appender.PLACK=Log::Log4perl::Appender::Screen
43
log4perl.appender.PLACK.stderr = 1
44
log4perl.appender.PLACK.mode=append
45
log4perl.appender.PLACK.layout=PatternLayout
46
log4perl.appender.PLACK.layout.ConversionPattern=[%d] [%p] %m
47
log4perl.appender.PLACK.utf8=1

Return to bug 16357