Summary: | Add debug option to koha-indexer | ||
---|---|---|---|
Product: | Koha | Reporter: | Nick Clemens <nick> |
Component: | Command-line Utilities | Assignee: | Nick Clemens <nick> |
Status: | CLOSED FIXED | QA Contact: | Tomás Cohen Arazi <tomascohen> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | jonathan.druart, lucas, mtj, robin, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
These patches add a --debug switch to the koha-indexer script. This will vastly increase the logging output of the rebuild zebra daemon. This information may be useful for determining why some records are not being indexed.
|
Version(s) released in: |
20.11.00
|
Attachments: |
Bug 24306: Add debug switch to koha-indexer
Bug 24306: Add debug switch to koha-indexer Bug 24306: (follow-up) Add documentation for debug option Bug 24306: Add debug switch to koha-indexer Bug 24306: (follow-up) Add documentation for debug option Bug 24306: (QA follow-up) Fix the XML |
Description
Nick Clemens
2019-12-24 13:58:56 UTC
Created attachment 96621 [details] [review] Bug 24306: Add debug switch to koha-indexer This raises the debug level a lot, it it a bit overwhelming, but may be useful in debugging indexing issues To test: 1 - Apply patches 2 - sudo koha-indexer --stop instance 3 - sudo debian/scripts/koha-indexer --start --debug instance 4 - tail -f /var/log/koha/instance/indexer-output.log 5 - Note you get a listing that nothign in the queue 6 - Go to staff client and make a change to a record 7 - Note the logs have tons of info Created attachment 99460 [details] [review] Bug 24306: Add debug switch to koha-indexer This raises the debug level a lot, it it a bit overwhelming, but may be useful in debugging indexing issues To test: 1 - Apply patches 2 - sudo koha-indexer --stop instance 3 - sudo debian/scripts/koha-indexer --start --debug instance 4 - tail -f /var/log/koha/instance/indexer-output.log 5 - Note you get a listing that nothign in the queue 6 - Go to staff client and make a change to a record 7 - Note the logs have tons of info Signed-off-by: David Nind <david@davidnind.com> Why --debug and not --verbose? Note that koha-elasticsearch has a verbose flag (and other script in debian/scripts) You should also update debian/docs/koha-indexer.xml, and maybe tell that the new flag is not for production use, bug debug purpose only (obvious if you keep --debug, but worth a note if we go with --verbose). (In reply to Jonathan Druart from comment #3) > Why --debug and not --verbose? > Note that koha-elasticsearch has a verbose flag (and other script in > debian/scripts) > > You should also update debian/docs/koha-indexer.xml, and maybe tell that the > new flag is not for production use, bug debug purpose only (obvious if you > keep --debug, but worth a note if we go with --verbose). I think I went with debug because it is incredibly verbose. The script is hardcoded with verbose=1 in the options elsewhere, so you never really have a non-verbose option Created attachment 107460 [details] [review] Bug 24306: (follow-up) Add documentation for debug option Created attachment 108073 [details] [review] Bug 24306: Add debug switch to koha-indexer This raises the debug level a lot, it it a bit overwhelming, but may be useful in debugging indexing issues To test: 1 - Apply patches 2 - sudo koha-indexer --stop instance 3 - sudo debian/scripts/koha-indexer --start --debug instance 4 - tail -f /var/log/koha/instance/indexer-output.log 5 - Note you get a listing that nothign in the queue 6 - Go to staff client and make a change to a record 7 - Note the logs have tons of info Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 108074 [details] [review] Bug 24306: (follow-up) Add documentation for debug option Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 108075 [details] [review] Bug 24306: (QA follow-up) Fix the XML Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Pushed to master for 20.11, thanks to everybody involved! enhancement will not be backported to 20.05.x |