View | Details | Raw Unified | Return to bug 25245
Collapse All | Expand All

(-)a/misc/cronjobs/plugins_nightly.pl (-1 / +4 lines)
Lines 2-10 Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Logger;
5
use Koha::Script -cron;
6
use Koha::Script -cron;
7
6
cronlogaction();
8
cronlogaction();
7
9
10
my $logger = Koha::Logger->get();
8
if ( C4::Context->config("enable_plugins") ) {
11
if ( C4::Context->config("enable_plugins") ) {
9
    my @plugins = Koha::Plugins->new->GetPlugins(
12
    my @plugins = Koha::Plugins->new->GetPlugins(
10
        {
13
        {
Lines 18-23 if ( C4::Context->config("enable_plugins") ) { Link Here
18
        }
21
        }
19
        catch {
22
        catch {
20
            warn "$_";
23
            warn "$_";
24
            $logger->warn("$_");
21
        };
25
        };
22
    }
26
    }
23
}
27
}
24
- 

Return to bug 25245