From 8d5b7871f4c45d9d84d64918d7e4aff01319d4fd 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 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.34.1