From fbb7161e6b5ad2d5182d1762502188451ee234c0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 15 Aug 2017 21:33:57 +0200 Subject: [PATCH] Improved logging message. --- app/models/concerns/has_search_index_backend.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/has_search_index_backend.rb b/app/models/concerns/has_search_index_backend.rb index 8ab494ce2..c7a656493 100644 --- a/app/models/concerns/has_search_index_backend.rb +++ b/app/models/concerns/has_search_index_backend.rb @@ -133,9 +133,9 @@ reload search index with full data begin item.search_index_update_backend rescue => e - logger.error "Unable to send #{item.class}.find(#{item.id}) backend: #{e.inspect}" + logger.error "Unable to send #{item.class}.find(#{item.id}).search_index_update_backend backend: #{e.inspect}" tolerance_count += 1 - raise "Unable to send #{item.class}.find(#{item.id}) backend: #{e.inspect}" if tolerance_count == tolerance + raise "Unable to send #{item.class}.find(#{item.id}).search_index_update_backend backend: #{e.inspect}" if tolerance_count == tolerance end } end