Log search backend errors also to application log.

This commit is contained in:
Martin Edenhofer 2018-05-11 10:16:18 +02:00
parent 6263762ac4
commit f2c7ced74d

View file

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