From 03eaa7f959144433fdd497ed89261430683d5e02 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 27 Jul 2022 20:46:03 -0300 Subject: [PATCH] Bug 31249: Use cronlogaction on update_patrons_category.pl This patch does what the title says. To test: 1. Run the script 2. Check the action logs => FAIL: Boo, no record of the running cronjob 3. Apply this patch 4. Repeat 1-2 => SUCCESS: Yay! 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: Liz Rea --- misc/cronjobs/update_patrons_category.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/cronjobs/update_patrons_category.pl b/misc/cronjobs/update_patrons_category.pl index b1e9cc479a..aafbf86aa5 100755 --- a/misc/cronjobs/update_patrons_category.pl +++ b/misc/cronjobs/update_patrons_category.pl @@ -18,6 +18,7 @@ use Modern::Perl; use C4::Context; +use C4::Log qw(cronlogaction); use Getopt::Long qw( GetOptions ); use Pod::Usage qw( pod2usage ); use Koha::Logger; @@ -201,6 +202,8 @@ if ( not $fromcat && $tocat ) { #make sure we've specified the info we need. $verbose and print "Will update patrons from $fromcat to $tocat with conditions below (if any)\n"; +cronlogaction(); + my %params; if ( $reg_bef || $reg_aft ) { -- 2.25.1