Bugzilla – Attachment 103775 Details for
Bug 25245
Add a plugin hook to allow running code on a nightly basis
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25245: (follow-up) Use Koha::Logger
Bug-25245-follow-up-Use-KohaLogger.patch (text/plain), 995 bytes, created by
Martin Renvoize (ashimema)
on 2020-04-27 12:45:09 UTC
(
hide
)
Description:
Bug 25245: (follow-up) Use Koha::Logger
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-04-27 12:45:09 UTC
Size:
995 bytes
patch
obsolete
>From 4f96691d8ffc2d34934f7f612655b1cf5736f003 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 27 Apr 2020 13:30:24 +0100 >Subject: [PATCH] Bug 25245: (follow-up) Use Koha::Logger > >Update script to use Koha::Logger to capture method failures. >--- > misc/cronjobs/plugins_nightly.pl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/misc/cronjobs/plugins_nightly.pl b/misc/cronjobs/plugins_nightly.pl >index 26e3088b0f..dcca0e9a54 100755 >--- a/misc/cronjobs/plugins_nightly.pl >+++ b/misc/cronjobs/plugins_nightly.pl >@@ -2,9 +2,12 @@ > > use Modern::Perl; > >+use Koha::Logger; > use Koha::Script -cron; >+ > cronlogaction(); > >+my $logger = Koha::Logger->get(); > if ( C4::Context->config("enable_plugins") ) { > my @plugins = Koha::Plugins->new->GetPlugins( > { >@@ -18,6 +21,7 @@ if ( C4::Context->config("enable_plugins") ) { > } > catch { > warn "$_"; >+ $logger->warn("$_"); > }; > } > } >-- >2.20.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 25245
:
103454
|
103460
|
103461
|
103497
|
103498
|
103767
|
103768
|
103769
|
103774
|
103775
|
103776
|
103778
|
104345
|
105400
|
105401
|
105402
|
106067
|
106068
|
106069