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 1244-1250 sub logger Link Here
1244
    my $sth;
1247
    my $sth;
1245
1248
1246
    if ( defined( $context->{"logger"} ) ) {
1249
    if ( defined( $context->{"logger"} ) ) {
1247
    return $context->{"logger"};
1250
        return $context->{"logger"};
1248
    }
1251
    }
1249
1252
1250
    $context->{"logger"} = Koha::Utils::Logger->new(
1253
    $context->{"logger"} = Koha::Utils::Logger->new(
1251
- 

Return to bug 8190