Bug 28740: (follow-up) Add missing C4::Log import for cronlogaction

The patch added cronlogaction() calls but did not import the function.
This caused a runtime error: Undefined subroutine &main::cronlogaction.

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ perl misc/cronjobs/cleanup_database.pl --illrequests-days 30 \
       --illrequests-status COMP -v
=> SUCCESS: Dry-run works, reports count of requests that would be removed
3. Run with --confirm to actually purge
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
John Doe 2026-08-05 15:25:15 +00:00 committed by Pedro Amorim
parent 5ebc4d79a1
commit 9fc9f84b8d
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ use Koha::Script -cron;
use C4::Accounts qw( purge_zero_balance_fees );
use C4::Context;
use C4::Log qw( cronlogaction );
use C4::Search::History;
use C4::Search;
use Koha::BackgroundJobs;