Module: Rextract::LogRequests

Included in:
Browser
Defined in:
lib/rextract/browser.rb

Instance Method Summary collapse

Instance Method Details

#get(*args) ⇒ Object



61
62
63
64
65
# File 'lib/rextract/browser.rb', line 61

def get(*args)
  url = args.is_a?(Hash) ? args[:url] : args.first
  $stderr.puts "[#{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}] Requesting URL #{url}" # TODO Switch the STDERR.puts call with something that uses a _real_ logger
  super(*args)
end