Bug 28555 - Improve logging for overdue_notices.pl
Summary: Improve logging for overdue_notices.pl
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Nick Clemens
QA Contact: Testopia
Depends on:
Reported: 2021-06-11 14:59 UTC by Nick Clemens
Modified: 2021-06-11 15:19 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Text to go in the release notes:
Version(s) released in:

Bug 28555: Improve logging for overdue_notices.pl (3.99 KB, patch)
2021-06-11 15:15 UTC, Nick Clemens
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens 2021-06-11 14:59:28 UTC
The logging for this cronjob is a bit overwhelming

To recreate:
perl misc/cronjobs/overdue_notices.pl -v
Comment 1 Nick Clemens 2021-06-11 15:15:36 UTC
Created attachment 121855 [details] [review]
Bug 28555: Improve logging for overdue_notices.pl

Currenlty the output with -v from overdue_notices is a bit overwhelming and hard to parse

I do a few things here:
1 - Only show SQL if verbose > 1
2 - Add some separators to make it more readab;e
3 - Remove some redundant messages with branchcode and borrowernumber

To test:
1: perl misc/cronjobs/overdue_notices.pl -v
2: Notice you get a LOT of information all smushed together
3: Apply patch
4: perl misc/cronjobs/overdue_notices.pl -v
5: Less info, and easier to read
6: perl misc/cronjobs/overdue_notices.pl -v -v
7: All the info, but nicer to read