aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-13 00:41:04 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-13 01:19:23 +0100
commitda5978c22374b8a3b15a421ff4920e0940435253 (patch)
treee9a94394f0ce7455cd0f955ede80e0b5f5f573b0 /actionpack/lib/action_controller/caching.rb
parent8d78a82d797bf8809acb1d2ebb30cf81488ac99c (diff)
downloadrails-da5978c22374b8a3b15a421ff4920e0940435253.tar.gz
rails-da5978c22374b8a3b15a421ff4920e0940435253.tar.bz2
rails-da5978c22374b8a3b15a421ff4920e0940435253.zip
Add subscriber for ActionPack and move all logging inside it.
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r--actionpack/lib/action_controller/caching.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb
index 5c0d754ad6..d784138ebe 100644
--- a/actionpack/lib/action_controller/caching.rb
+++ b/actionpack/lib/action_controller/caching.rb
@@ -60,17 +60,6 @@ module ActionController #:nodoc:
def cache_configured?
perform_caching && cache_store
end
-
- def log_event(name, before, after, instrumenter_id, payload)
- if name.to_s =~ /action_controller\.((read|write|expire|exist)_(fragment|page)\??)/
- key_or_path = payload[:key] || payload[:path]
- human_name = $1.humanize
- duration = (after - before) * 1000
- logger.info("#{human_name} #{key_or_path.inspect} (%.1fms)" % duration)
- else
- super
- end
- end
end
def caching_allowed?