diff options
author | Avner Cohen <israbirding@gmail.com> | 2013-08-13 22:22:56 +0300 |
---|---|---|
committer | Avner Cohen <israbirding@gmail.com> | 2015-06-23 23:07:19 +0300 |
commit | f654d658f2dab5f4dcc42b2d0c308b4d806dc491 (patch) | |
tree | ace5e61d3841679b0cb509e817581bcd3b7db919 /activesupport/lib | |
parent | 1022796ac075a5f1a3ca45f4d48284d4bfa2567a (diff) | |
download | rails-f654d658f2dab5f4dcc42b2d0c308b4d806dc491.tar.gz rails-f654d658f2dab5f4dcc42b2d0c308b4d806dc491.tar.bz2 rails-f654d658f2dab5f4dcc42b2d0c308b4d806dc491.zip |
When logging Cache key, in debug mode, also log namespace, to create the full key that actually used by the underline cache implementation
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 837974bc85..1ed1ded320 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -533,7 +533,7 @@ module ActiveSupport end def instrument(operation, key, options = nil) - log { "Cache #{operation}: #{key}#{options.blank? ? "" : " (#{options.inspect})"}" } + log { "Cache #{operation}: #{namespaced_key(key, options)}#{options.blank? ? "" : " (#{options.inspect})"}" } payload = { :key => key } payload.merge!(options) if options.is_a?(Hash) |