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 1251-1257 sub logger Link Here
1251
    my $sth;
1254
    my $sth;
1252
1255
1253
    if ( defined( $context->{"logger"} ) ) {
1256
    if ( defined( $context->{"logger"} ) ) {
1254
	return $context->{"logger"};
1257
        return $context->{"logger"};
1255
    }
1258
    }
1256
1259
1257
    $context->{"logger"} = Koha::Utils::Logger->new(
1260
    $context->{"logger"} = Koha::Utils::Logger->new(
1258
- 

Return to bug 8190