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

(-)a/debian/templates/plack.psgi (-1 / +1 lines)
Lines 39-45 use Koha::DateUtils; Link Here
39
39
40
#BZ 16357, add timestamps to warnings
40
#BZ 16357, add timestamps to warnings
41
use Log::Log4perl qw(:easy);
41
use Log::Log4perl qw(:easy);
42
Log::Log4perl->easy_init($WARN);
42
Log::Log4perl->easy_init({ level => $WARN, utf8 => 1 });
43
my $logger = Log::Log4perl->get_logger(); # use the default logger style
43
my $logger = Log::Log4perl->get_logger(); # use the default logger style
44
$SIG{__WARN__} = sub {
44
$SIG{__WARN__} = sub {
45
    my $message = shift;
45
    my $message = shift;
(-)a/misc/plack/koha.psgi (-2 / +1 lines)
Lines 7-13 use Plack::App::Directory; Link Here
7
7
8
#BZ 16357, add timestamps to warnings
8
#BZ 16357, add timestamps to warnings
9
use Log::Log4perl qw(:easy);
9
use Log::Log4perl qw(:easy);
10
Log::Log4perl->easy_init($WARN);
10
Log::Log4perl->easy_init({ level => $WARN, utf8 => 1 });
11
my $logger = Log::Log4perl->get_logger(); # use the default logger style
11
my $logger = Log::Log4perl->get_logger(); # use the default logger style
12
$SIG{__WARN__} = sub {
12
$SIG{__WARN__} = sub {
13
    my $message = shift;
13
    my $message = shift;
14
- 

Return to bug 16357