Improved logging for failed cache creation.

This commit is contained in:
Thorsten Eckel 2018-05-11 14:21:00 +02:00
parent 896e4f0492
commit 9d71bb2a57

View file

@ -35,6 +35,7 @@ write a cache
Rails.cache.write(key.to_s, data, params)
rescue => e
Rails.logger.error "Can't write cache #{key}: #{e.inspect}"
Rails.logger.error e
end
end