Improved logging for failed cache creation.
This commit is contained in:
parent
896e4f0492
commit
9d71bb2a57
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ write a cache
|
||||||
Rails.cache.write(key.to_s, data, params)
|
Rails.cache.write(key.to_s, data, params)
|
||||||
rescue => e
|
rescue => e
|
||||||
Rails.logger.error "Can't write cache #{key}: #{e.inspect}"
|
Rails.logger.error "Can't write cache #{key}: #{e.inspect}"
|
||||||
|
Rails.logger.error e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue