<div dir="ltr">Just because I remembered this conversation, and ended up looking this up,  <div><div>Bug <a href="http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15714">http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15714</a> enhancement, P5 - low, ---, m.de.rooy, Pushed to Master , Remove zebra.log from debian scripts and add optional log levels</div></div><div><br></div><div>This should be released in 16.05, and adds the ability to set the zebra log level via the <zebra_loglevels> directive in $KOHA_CONF.</div><div><br></div><div>Thanks to all involved.</div><div><br></div><div>--Barton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 4:54 PM, David Cook <span dir="ltr"><<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-AU" link="blue" vlink="purple"><div><p class="MsoNormal"><a name="m_-5885512088550881952__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Agreed. I think that would make a lot of sense.<u></u><u></u></span></a></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">David Cook<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Systems Librarian<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Prosentient Systems<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">72/330 Wattle St, Ultimo, NSW 2007<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p></span><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Tomas Cohen Arazi [mailto:<a href="mailto:tomascohen@gmail.com" target="_blank">tomascohen@gmail.com</a>] <br><b>Sent:</b> Wednesday, 18 November 2015 12:11 AM<br><b>To:</b> David Cook <<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>><br><b>Cc:</b> Koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a>><br><b>Subject:</b> Re: [Koha-devel] Improving Zebra logging<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">The koha-*-zebra scripts should be merged into koha-zebra with several option switches, just as koha-indexer works... Same for SIP-related scripts.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">2015-11-17 0:19 GMT-03:00 David Cook <<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>>:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal">Hi all:<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">As if you weren’t all sick of me going on and on about Zebra.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">So you may or may not know that the Zebra logs are fairly useless in a package install of Koha.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">At Prosentient, we don’t use package installs much, so I haven’t noticed this until now, but here’s a tip:<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">If you want to see what requests are being made to Zebra, you can do the following:<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p>1)<span style="font-size:7.0pt">      </span>vi /usr/sbin/koha-start-zebra<u></u><u></u></p><p>2)<span style="font-size:7.0pt">      </span>Under start_zebra_instance, you can change “-v none,fatal,warn” to “-v none,fatal,warn,request” (note that “request” is an undocumented log level but it should work… alternately remove none and requests should appear in the log)<u></u><u></u></p><p>3)<span style="font-size:7.0pt">      </span>sudo koha-zebra-stop<u></u><u></u></p><p>4)<span style="font-size:7.0pt">      </span>sudo koha-zebra-start<u></u><u></u></p><p>5)<span style="font-size:7.0pt">      </span>profit (or at least see the PQF which is sent to the server and whether you’re getting errors or OK query responses)<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">This is the kind of additional output you should expect to see:<u></u><u></u></p><p class="MsoNormal">14:15:00-17/11 zebrasrv(2) [request] Auth idPass kohauser -<u></u><u></u></p><p class="MsoNormal">14:15:00-17/11 zebrasrv(2) [request] Init OK - ID:81 Name:ZOOM-C/YAZ Version:4.2.30 98864b44c654645bc16b2c54f822dc2e45a93031<u></u><u></u></p><p class="MsoNormal">14:15:00-17/11 zebrasrv(2) [request] Search biblios OK 0 1 1+0 RPN @attrset Bib-1 @attr 1=1016 @attr 4=6 @attr 5=1 test<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Anyway, I wouldn’t *<b>actually</b>* recommend changing /usr/sbin/koha-start-zebra since that’s part of the koha-common package… but maybe someone would be interested in making change to the Zebra commands to allow for different logging levels.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Other things to note:<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">koha-zebra-restart isn’t the same thing as koha-zebra-stop && koha-zebra-start. If you restart Zebra after changing the flags for daemon or zebrasrv, the changes won’t be brought across…it’s necessary to stop and start it again… even though the process is actually restarted… it seems to be restarted using the original configuration used when launching daemon in the first place.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">David Cook<u></u><u></u></p><p class="MsoNormal">Systems Librarian<u></u><u></u></p><p class="MsoNormal">Prosentient Systems<u></u><u></u></p><p class="MsoNormal">72/330 Wattle St, Ultimo, NSW 2007<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal"><br>_______________________________________________<br>Koha-devel mailing list<br><a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br><a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><div><p class="MsoNormal"><span style="font-size:9.5pt">Tomás Cohen Arazi<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">Theke Solutions (<a href="http://theke.io/" target="_blank">http://theke.io</a>)<br></span><span style="font-size:9.5pt;font-family:"Segoe UI Symbol",sans-serif">✆</span><span style="font-size:9.5pt"> <a href="tel:%2B54%209351%203513384" value="+5493513513384" target="_blank">+54 9351 3513384</a><br>GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F<u></u><u></u></span></p></div></div></div></div></div></div></div></div></div><br>_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br></blockquote></div><br></div>