Bug 33108: (follow-up) Don't die, only warn if not using ES

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-03-02 13:44:34 +00:00 committed by Tomas Cohen Arazi
parent 84460798f0
commit 8e00746095
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -73,7 +73,7 @@ pod2usage(0) if $help;
$batch_size //= 10;
die "Not using Elasticsearch" unless C4::Context->preference('SearchEngine') eq 'Elasticsearch';
warn "Not using Elasticsearch" unless C4::Context->preference('SearchEngine') eq 'Elasticsearch';
my $logger = Koha::Logger->get({ interface => 'worker' });