diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-15 14:45:18 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-15 15:57:33 +0100 |
commit | e5a2a9fced3e5559ac139977922a0f63a53c6c5c (patch) | |
tree | a0de1faec1f5e12e6f7ea2fd7e70bdecacde9a2d /activeresource/lib/active_resource/railties/subscriber.rb | |
parent | 4598d8874948268e1162c1ef75d0bd565b1e0e64 (diff) | |
download | rails-e5a2a9fced3e5559ac139977922a0f63a53c6c5c.tar.gz rails-e5a2a9fced3e5559ac139977922a0f63a53c6c5c.tar.bz2 rails-e5a2a9fced3e5559ac139977922a0f63a53c6c5c.zip |
Remove URI object from ActiveResource notification, send the :mailer class in AM (like in AP#process_action) and remove locale instrumentation.
Diffstat (limited to 'activeresource/lib/active_resource/railties/subscriber.rb')
-rw-r--r-- | activeresource/lib/active_resource/railties/subscriber.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/railties/subscriber.rb b/activeresource/lib/active_resource/railties/subscriber.rb index 42c108d702..fb98061b71 100644 --- a/activeresource/lib/active_resource/railties/subscriber.rb +++ b/activeresource/lib/active_resource/railties/subscriber.rb @@ -2,8 +2,8 @@ module ActiveResource module Railties class Subscriber < Rails::Subscriber def request(event) - result, site = event.payload[:result], event.payload[:site] - info "#{event.payload[:method].to_s.upcase} #{site.scheme}://#{site.host}:#{site.port}#{event.payload[:path]}" + result = event.payload[:result] + info "#{event.payload[:method].to_s.upcase} #{event.payload[:request_uri]}" info "--> %d %s %d (%.1fms)" % [result.code, result.message, result.body.to_s.length, event.duration] end |