[Bug 24306] New: Add debug option to koha-indexer
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Bug ID: 24306 Summary: Add debug option to koha-indexer Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Would be nice to be able to raise logging level and see errors from the indexer -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 --- Comment #1 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 96621 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96621&action=edit 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 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |nick@bywatersolutions.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtj@kohaaloha.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #96621|0 |1 is obsolete| | --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 99460 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99460&action=edit 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> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #3 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- 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). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 --- Comment #4 from Nick Clemens <nick@bywatersolutions.com> --- (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 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 --- Comment #5 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 107460 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107460&action=edit Bug 24306: (follow-up) Add documentation for debug option -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |tomascohen@gmail.com |y.org | CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107460|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #99460|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 --- Comment #6 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108073 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108073&action=edit 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> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 --- Comment #7 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108074 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108074&action=edit Bug 24306: (follow-up) Add documentation for debug option Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 --- Comment #8 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108075 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108075&action=edit Bug 24306: (QA follow-up) Fix the XML Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |20.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 --- Comment #9 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Pushed to master for 20.11, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #10 from Lucas Gass <lucas@bywatersolutions.com> --- enhancement will not be backported to 20.05.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|release-notes-needed | Text to go in the| |These patches add a --debug release notes| |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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24306 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Architecture, internals, |Command-line Utilities |and plumbing | CC| |robin@catalyst.net.nz -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org