Browse files

log requests

  • Loading branch information...
1 parent 1766e6c commit 4646385257df3e3b2f1c7d3fe98dda74f01aa9ac @jamesgolick committed Apr 30, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/trample/session.rb
View
3 lib/trample/session.rb
@@ -1,5 +1,7 @@
module Trample
class Session
+ include Logging
+
attr_reader :config
def initialize(config)
@@ -16,6 +18,7 @@ def trample
protected
def request(page)
+ logger.info "#{page.request_method.to_s.upcase} #{page.url}"
RestClient.send(page.request_method, page.url)
end
end

0 comments on commit 4646385

Please sign in to comment.