Bugzilla – Attachment 178275 Details for
Bug 39154
About: add a warning for obsoleted sip.log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39154: Add sip.log test in about
Bug-39154-Add-siplog-test-in-about.patch (text/plain), 2.20 KB, created by
Marcel de Rooy
on 2025-02-18 14:37:08 UTC
(
hide
)
Description:
Bug 39154: Add sip.log test in about
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-02-18 14:37:08 UTC
Size:
2.20 KB
patch
obsolete
>From 56eb4a6b22587c1afdc32ec0c4c6d5037f2507d3 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 18 Feb 2025 14:30:56 +0000 >Subject: [PATCH] Bug 39154: Add sip.log test in about >Content-Type: text/plain; charset=utf-8 > >See bug 36954. The file sip.log should not be found anymore in >log4perl.conf. > >Test plan: >Edit log4perl.conf. Replace sip-output.log by sip.log. >Check About, tab sysinfo. You should see a warn. >Edit again. Switch back to sip-output.log. >Verify that there is no warn anymore on about. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > about.pl | 4 +++- > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 2 ++ > 2 files changed, 5 insertions(+), 1 deletion(-) > >diff --git a/about.pl b/about.pl >index 952bfdf10b..2ad46f931d 100755 >--- a/about.pl >+++ b/about.pl >@@ -826,7 +826,9 @@ sub log4perl_check { > for my $line (@lines) { > next unless $line =~ m|log4perl\.appender\.\w+\.filename=(.*)|; > my $file = $1; >- if ( !-w $file ) { >+ if ( $file =~ /sip\.log$/ ) { >+ push @log4perl_errors, 'sip_log_still_found'; >+ } elsif ( !-w $file ) { > push @log4perl_errors, 'logfile_not_writable'; > > #NOTE: An unwritable logfile blocks plack.psgi. So you wont reach this script. (BZ 39155) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index 71b5a91153..904b37f372 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -449,6 +449,8 @@ > <span>One of the logfiles listed in the config file is not writable.</span> > [% CASE 'cannot_init_module' %] > <span>The Koha::Logger module cannot be initiated correctly (check the log file).</span> >+ [% CASE 'sip_log_still_found' %] >+ <span>Config file log4perl.conf still refers to sip.log (instead of sip-output.log).</span> > [% CASE %] > <span>Unknown error '[% e | html %]'.</span> > [% END %] >-- >2.39.5
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 39154
:
178275
|
178293
|
179073