@@ -, +, @@ installed --- C4/Context.pm | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) --- a/C4/Context.pm +++ a/C4/Context.pm @@ -20,7 +20,10 @@ use strict; use warnings; use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached); -use Koha::Utils::Logger; +eval{ + require Koha::Utils::Logger; +}; +die "The logging system is broken. Please check that Log::LogLite is installed." if $@; BEGIN { if ($ENV{'HTTP_USER_AGENT'}) { @@ -1244,7 +1247,7 @@ sub logger my $sth; if ( defined( $context->{"logger"} ) ) { - return $context->{"logger"}; + return $context->{"logger"}; } $context->{"logger"} = Koha::Utils::Logger->new( --