Improved logging message.

This commit is contained in:
Martin Edenhofer 2017-08-15 21:33:57 +02:00
parent fde8d11b5f
commit fbb7161e6b

View file

@ -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