Bug 28555: Improve logging for overdue_notices.pl
authorNick Clemens <nick@bywatersolutions.com>
Fri, 11 Jun 2021 15:12:32 +0000 (15:12 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 Oct 2022 00:08:58 +0000 (21:08 -0300)
commitfe376c7d8531279a1b6c0ebb9b0a2ed671b43a00
tree06de5eaaf83838dfe6addc4fcde07d29e7093bb2
parenta39ef13ccf76e34fe1c485b40ffcdf13424e786e
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

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/overdue_notices.pl