Bug 33108: (follow-up) Don't die, only warn if not using ES
authorNick Clemens <nick@bywatersolutions.com>
Thu, 2 Mar 2023 13:44:34 +0000 (13:44 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 20 Mar 2023 12:39:47 +0000 (09:39 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/workers/es_indexer_daemon.pl

index b871ace..3acfc6e 100755 (executable)
@@ -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' });