From 5ccf52ab5101c3cebe232d1258c955135390a43c Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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. Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart (cherry picked from commit 441ba0bd2365b52753c2acbf887466df84245224) Signed-off-by: Fridolin Somers --- 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.39.5