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 ) {