[Bug 42742] New: delete_records_via_leader.pl cronjob should log
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42742 Bug ID: 42742 Summary: delete_records_via_leader.pl cronjob should log Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Command-line Utilities Assignee: koha-bugs@lists.koha-community.org Reporter: ephetteplace@cca.edu QA Contact: testopia@bugs.koha-community.org CC: jake.deery@openfifth.co.uk, robin@catalyst.net.nz misc/cronjobs/delete_records_via_leader.pl should produce an entry in the logs, right now it just prints to stdout. We run this on a schedule and it'd be useful to see that it ran and its results ("DELETED N of X total records"). -- 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=42742 Eric Phetteplace <ephetteplace@cca.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=29238 -- 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=42742 Eric Phetteplace <ephetteplace@cca.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |ephetteplace@cca.edu |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=42742 --- Comment #1 from Eric Phetteplace <ephetteplace@cca.edu> --- Created attachment 199851 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199851&action=edit Bug 42742: delete_records_via_leader.pl cronjob should log 1. Turn on CronjobLog 2. Either import records with a 'd' status or edit existing ones a. Example: change 000 field '00608nam...' to '00608dam...' 3. Run script: perl misc/cronjobs/delete_records_via_leader.pl -c -v -i 4. Check logs—no entries related to script itself (but there are for deleted objects) 5. Apply patch and repeat steps 2-4 6. When checking logs, they should include entries for the script running & a summary of deletions Small batches of records complete in the same second they're run, so unintuitively the summary may be listed on the Log Viewer _before_ record deletions and the script's Run entry, but the summary is created last. You can also verify this via a report: `SELECT * FROM logaction WHERE module = 'CRONJOBS'`. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42742 Eric Phetteplace <ephetteplace@cca.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org