Bugzilla – Attachment 47597 Details for
Bug 15714
Remove zebra.log from debian scripts and add optional log levels
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15714: Add get_loglevels to koha-functions.sh
Bug-15714-Add-getloglevels-to-koha-functionssh.patch (text/plain), 1.47 KB, created by
Marcel de Rooy
on 2016-02-03 15:06:06 UTC
(
hide
)
Description:
Bug 15714: Add get_loglevels to koha-functions.sh
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-02-03 15:06:06 UTC
Size:
1.47 KB
patch
obsolete
>From 601bb211b89d9e7ef46e334f80c7b75f758697c9 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 1 Feb 2016 15:36:26 +0100 >Subject: [PATCH] Bug 15714: Add get_loglevels to koha-functions.sh >Content-Type: text/plain; charset=utf-8 > >Preparing for including different log levels in koha-start-zebra. >Note that the default response is none,fatal,warn; this is equal >to the options passed to zebrasrv in koha-start-zebra (for now). > >Test plan: >[1] Run on the command line: source koha-functions.sh >[2] Type get_loglevels [your_instance] > By default, you should see: none,fatal,warn >[3] Add this line to your koha-conf: > <zebra_loglevels>how,are,you</zebra_loglevels> >[4] Run get_loglevels [your_instance] again. > Remove the nonsense log levels again.. >--- > debian/scripts/koha-functions.sh | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/debian/scripts/koha-functions.sh b/debian/scripts/koha-functions.sh >index 5ec633d..87a84a1 100755 >--- a/debian/scripts/koha-functions.sh >+++ b/debian/scripts/koha-functions.sh >@@ -159,3 +159,15 @@ get_instances() > find /etc/koha/sites -mindepth 1 -maxdepth 1\ > -type d -printf '%f\n' | sort > } >+ >+get_loglevels() >+{ >+ local instancename=$1 >+ local retval=$(xmlstarlet sel -t -v 'yazgfs/config/zebra_loglevels' /etc/koha/sites/$instancename/koha-conf.xml) >+ if [ "$retval" != "" ]; then >+ echo "$retval" >+ else >+ echo "none,fatal,warn" >+ fi >+ >+} >-- >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 15714
:
47597
|
47598
|
47599
|
48048
|
48088
|
48089
|
48090
|
48103
|
48104
|
48105