]> git.koha-community.org Git - koha.git/commit
Bug 38237: Add logging to erm_run_harvester cronjob
authorNick Clemens <nick@bywatersolutions.com>
Wed, 23 Oct 2024 12:22:16 +0000 (12:22 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 23 Oct 2024 17:14:53 +0000 (19:14 +0200)
commit6ce5df7f8e6862edc5a19f80b52a2360ee07d6c7
treec2bda5362cf62e3ade25bca4a325770eb03ea719
parentb1cd9cccd2918f954b6e675bf1b7bad853548372
Bug 38237: Add logging to erm_run_harvester cronjob

This patch simply adds logging to the cronjob

To test:
1 - Enable CronjobLog
    http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=CronjobLog
2 - Enable ERMModule
    http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ERMModule
3 - Home -> E-resource Management -> Data providers -> New data provider
    Fill from registry or create your own, but change the URL and put in any required numbers
    We don't need a real test, just to run the ob
4 - perl misc/cronjobs/erm_run_harvester.pl --begin-date 2024-01-01 --dry-run --debug
5 - View the logs, no log of the script
6 - Apply patches
7 - Run the job again
8 - Check logs
9 - Success!

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
misc/cronjobs/erm_run_harvester.pl