From 4fe1d8dfc9de4a314cd0836829efad7877121172 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 Signed-off-by: Fridolin Somers --- Koha/BackgroundJob/UpdateElasticIndex.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/BackgroundJob/UpdateElasticIndex.pm b/Koha/BackgroundJob/UpdateElasticIndex.pm index cafaf12fc8..3387b0cfc7 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.39.5