Bugzilla – Attachment 18882 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.16 KB, created by
Marcel de Rooy
on 2013-06-12 12:21:12 UTC
(
hide
)
Description:
Bug 8190: raise an error if the Log::LogLite module is not installed
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-06-12 12:21:12 UTC
Size:
1.16 KB
patch
obsolete
>From 4ca2d2df1e56e60dbb5132c42ae5d2d76a2e26a2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 19 Mar 2013 17:38:48 +0100 >Subject: [PATCH] Bug 8190: raise an error if the Log::LogLite module is not > installed >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Context.pm | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index c04e748..1af0ca5 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'}) { >@@ -1244,7 +1247,7 @@ sub logger > my $sth; > > if ( defined( $context->{"logger"} ) ) { >- return $context->{"logger"}; >+ return $context->{"logger"}; > } > > $context->{"logger"} = Koha::Utils::Logger->new( >-- >1.7.7.6
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