From f2c7ced74d21867562f0739c160d4d6307bc481b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 11 May 2018 10:16:18 +0200 Subject: [PATCH] Log search backend errors also to application log. --- lib/search_index_backend.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/search_index_backend.rb b/lib/search_index_backend.rb index 7c5e26f33..fa3efd36d 100644 --- a/lib/search_index_backend.rb +++ b/lib/search_index_backend.rb @@ -612,6 +612,8 @@ return true if backend is configured 'Check the response and payload for detailed information: ' end - "#{prefix} #{message}#{suffix}" + result = "#{prefix} #{message}#{suffix}" + Rails.logger.error result.first(40_000) + result end end