aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-04 00:03:56 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-04 00:03:56 +0100
commit3990310a2bedd0dff5753e3e9b1282e686cff0cc (patch)
treee5f6d664d543651a02187c6ab8fc35171d19a6be /actionpack/lib/action_controller/metal
parentf2d276fefdd620f18bb9fe3524ae9db6da70621d (diff)
downloadrails-3990310a2bedd0dff5753e3e9b1282e686cff0cc.tar.gz
rails-3990310a2bedd0dff5753e3e9b1282e686cff0cc.tar.bz2
rails-3990310a2bedd0dff5753e3e9b1282e686cff0cc.zip
Use underscore in notification namespaces.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/logger.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/logger.rb b/actionpack/lib/action_controller/metal/logger.rb
index 0dcab86f10..bf5f3b774f 100644
--- a/actionpack/lib/action_controller/metal/logger.rb
+++ b/actionpack/lib/action_controller/metal/logger.rb
@@ -15,7 +15,7 @@ module ActionController
attr_internal :view_runtime
def process_action(action)
- ActiveSupport::Notifications.instrument("actioncontroller.process_action",
+ ActiveSupport::Notifications.instrument("action_controller.process_action",
:controller => self, :action => action) do
super
end
@@ -51,7 +51,7 @@ module ActionController
# This is the hook invoked by ActiveSupport::Notifications.subscribe.
# If you need to log any event, overwrite the method and do it here.
def log_event(name, before, after, instrumenter_id, payload) #:nodoc:
- if name == "actioncontroller.process_action"
+ if name == "action_controller.process_action"
duration = [(after - before) * 1000, 0.01].max
controller = payload[:controller]
request = controller.request
@@ -67,7 +67,7 @@ module ActionController
message << " [#{request.request_uri rescue "unknown"}]"
logger.info(message)
- elsif name == "actionview.render_template"
+ elsif name == "action_view.render_template"
# TODO Make render_template logging work if you are using just ActionView
duration = (after - before) * 1000
message = "Rendered #{payload[:identifier]}"