aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/log_subscriber.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/lib/active_resource/log_subscriber.rb')
-rw-r--r--activeresource/lib/active_resource/log_subscriber.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/activeresource/lib/active_resource/log_subscriber.rb b/activeresource/lib/active_resource/log_subscriber.rb
deleted file mode 100644
index 9e52baf36d..0000000000
--- a/activeresource/lib/active_resource/log_subscriber.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-module ActiveResource
- class LogSubscriber < ActiveSupport::LogSubscriber
- def request(event)
- 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
-
- def logger
- ActiveResource::Base.logger
- end
- end
-end
-
-ActiveResource::LogSubscriber.attach_to :active_resource \ No newline at end of file