Bugzilla – Attachment 138206 Details for
Bug 31249
update_patrons_category.pl cron does not log to action_logs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31249: Use cronlogaction on update_patrons_category.pl
Bug-31249-Use-cronlogaction-on-updatepatronscatego.patch (text/plain), 1.28 KB, created by
Liz Rea
on 2022-07-28 14:12:51 UTC
(
hide
)
Description:
Bug 31249: Use cronlogaction on update_patrons_category.pl
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2022-07-28 14:12:51 UTC
Size:
1.28 KB
patch
obsolete
>From 03eaa7f959144433fdd497ed89261430683d5e02 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >Signed-off-by: Liz Rea <liz@bywatersolutions.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31249
:
138189
|
138206
|
138682