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

(-)a/debian/control (+2 lines)
Lines 111-116 Build-Depends: libalgorithm-checkdigits-perl, Link Here
111
 libpdf-reuse-barcode-perl,
111
 libpdf-reuse-barcode-perl,
112
 libpdf-reuse-perl,
112
 libpdf-reuse-perl,
113
 libpdf-table-perl,
113
 libpdf-table-perl,
114
 libplack-middleware-logwarn-perl,
114
 libplack-middleware-reverseproxy-perl,
115
 libplack-middleware-reverseproxy-perl,
115
 libppi-perl,
116
 libppi-perl,
116
 libreadonly-perl,
117
 libreadonly-perl,
Lines 346-351 Depends: libalgorithm-checkdigits-perl, Link Here
346
 libpdf-reuse-barcode-perl,
347
 libpdf-reuse-barcode-perl,
347
 libpdf-reuse-perl,
348
 libpdf-reuse-perl,
348
 libpdf-table-perl,
349
 libpdf-table-perl,
350
 libplack-middleware-logwarn-perl,
349
 libplack-middleware-reverseproxy-perl,
351
 libplack-middleware-reverseproxy-perl,
350
 libppi-perl,
352
 libppi-perl,
351
 libreadonly-perl,
353
 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