From 2622da7ce14c021dab780e23c42e8b2d010327a8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 5 Apr 2022 14:52:17 +0200 Subject: [PATCH] Bug 27344: Warn the error in the log Otherwise info about the failure is hidden in DB --- Koha/BackgroundJob/UpdateElasticIndex.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/BackgroundJob/UpdateElasticIndex.pm b/Koha/BackgroundJob/UpdateElasticIndex.pm index cafaf12fc8a..3387b0cfc7d 100644 --- a/Koha/BackgroundJob/UpdateElasticIndex.pm +++ b/Koha/BackgroundJob/UpdateElasticIndex.pm @@ -81,6 +81,7 @@ sub process { $indexer->update_index(\@record_ids); }; if ( $@ ) { + warn $@; push @messages, { type => 'error', code => 'index_error', -- 2.25.1