Bugzilla – Attachment 14320 Details for
Bug 8190
Add a logging module to Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8190: raise an error if the Log::LogLite module is not installed
Bug-8190-raise-an-error-if-the-LogLogLite-module-i.patch (text/plain), 1.00 KB, created by
Chris Cormack
on 2012-12-28 19:29:23 UTC
(
hide
)
Description:
Bug 8190: raise an error if the Log::LogLite module is not installed
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-12-28 19:29:23 UTC
Size:
1.00 KB
patch
obsolete
>From 6eca0fbc1054175815d92d0f6553820af1a9492e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 27 Dec 2012 15:10:25 +0100 >Subject: [PATCH] Bug 8190: raise an error if the Log::LogLite module is not > installed > >--- > C4/Context.pm | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index b3dd6ba..389aabe 100644 >--- a/C4/Context.pm >+++ b/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'}) { >@@ -1206,7 +1209,7 @@ sub logger > my $sth; > > if ( defined( $context->{"logger"} ) ) { >- return $context->{"logger"}; >+ return $context->{"logger"}; > } > > $context->{"logger"} = Koha::Utils::Logger->new( >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8190
:
9921
|
10996
|
12257
|
12264
|
12265
|
12270
|
12282
|
12283
|
12284
|
12287
|
12743
|
12744
|
12745
|
12746
|
13739
|
13740
|
13762
|
13763
|
13925
|
13926
|
14294
|
14296
|
14318
|
14319
|
14320
|
14321
|
14324
|
14388
|
14703
|
14704
|
14705
|
16426
|
16427
|
16428
|
16429
|
16430
|
18799
|
18800
|
18801
|
18802
|
18803
|
18819
|
18820
|
18870
|
18871
|
18872
|
18873
|
18874
|
18875
|
18876
|
18877
|
18880
|
18881
|
18882
|
18883
|
18884
|
18886
|
18887
|
18888
|
18890
|
34837
|
34838
|
34839
|
34840
|
34841
|
34842
|
34843
|
34844
|
34845