From b52c66f1bedb6ed5a08c106a199a53f67c9f6ec2 Mon Sep 17 00:00:00 2001 From: Winston Date: Wed, 22 Feb 2012 19:19:05 +0800 Subject: #read_entry in ActiveSupport::Cache::FileStore should log details of the exception when an exception is thrown. --- activesupport/lib/active_support/cache/file_store.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/cache/file_store.rb') diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index b7712a4a15..70116c0b36 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -81,7 +81,8 @@ module ActiveSupport if File.exist?(file_name) File.open(file_name) { |f| Marshal.load(f) } end - rescue + rescue => e + logger.error("FileStoreError (#{e}): #{e.message}") if logger nil end -- cgit v1.2.3