aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache/file_store.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-08-18 22:38:58 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-18 23:36:13 -0500
commitc1a8690d582c08777055caf449c03f85b4c8aa4b (patch)
treeaa88127d58845658f32fb9284b0f837f13700800 /activesupport/lib/active_support/cache/file_store.rb
parenta4da8175a2c989104de1a38e43d5ddfb0f89b055 (diff)
downloadrails-c1a8690d582c08777055caf449c03f85b4c8aa4b.tar.gz
rails-c1a8690d582c08777055caf449c03f85b4c8aa4b.tar.bz2
rails-c1a8690d582c08777055caf449c03f85b4c8aa4b.zip
Consistently use the framework's configured logger and avoid reverting to RAILS_DEFAULT_LOGGER unless necessary.
Diffstat (limited to 'activesupport/lib/active_support/cache/file_store.rb')
-rw-r--r--activesupport/lib/active_support/cache/file_store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb
index 437679cc05..659bde64f0 100644
--- a/activesupport/lib/active_support/cache/file_store.rb
+++ b/activesupport/lib/active_support/cache/file_store.rb
@@ -17,7 +17,7 @@ module ActiveSupport
ensure_cache_path(File.dirname(real_file_path(name)))
File.atomic_write(real_file_path(name), cache_path) { |f| Marshal.dump(value, f) }
rescue => e
- RAILS_DEFAULT_LOGGER.error "Couldn't create cache directory: #{name} (#{e.message})" if RAILS_DEFAULT_LOGGER
+ logger.error "Couldn't create cache directory: #{name} (#{e.message})" if logger
end
def delete(name, options = nil)
@@ -67,4 +67,4 @@ module ActiveSupport
end
end
end
-end \ No newline at end of file
+end