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

(-)a/C4/Context.pm (-3 / +5 lines)
Lines 20-26 use strict; Link Here
20
use warnings;
20
use warnings;
21
use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached);
21
use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached);
22
22
23
use Koha::Utils::Logger;
23
eval{
24
    require Koha::Utils::Logger;
25
};
26
die "The logging system is broken. Please check that Log::LogLite is installed." if $@;
24
27
25
BEGIN {
28
BEGIN {
26
	if ($ENV{'HTTP_USER_AGENT'})	{
29
	if ($ENV{'HTTP_USER_AGENT'})	{
Lines 1239-1245 sub logger Link Here
1239
    my $sth;
1242
    my $sth;
1240
1243
1241
    if ( defined( $context->{"logger"} ) ) {
1244
    if ( defined( $context->{"logger"} ) ) {
1242
    return $context->{"logger"};
1245
        return $context->{"logger"};
1243
    }
1246
    }
1244
1247
1245
    $context->{"logger"} = Koha::Utils::Logger->new(
1248
    $context->{"logger"} = Koha::Utils::Logger->new(
1246
- 

Return to bug 8190