Permalink
Browse files

Better logging

  • Loading branch information...
1 parent 9149168 commit a1b0aaeec40f83f8cb754243dee9cf6c45c686a2 @kyledrake kyledrake committed Aug 29, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/geoloqi/session.rb
  2. +1 −1 lib/geoloqi/version.rb
View
@@ -10,7 +10,7 @@ def initialize(opts={})
self.auth[:access_token] = opts[:access_token] if opts[:access_token]
@connection = Faraday.new(:url => Geoloqi.api_url) do |builder|
- builder.response :logger if @config.enable_logging
+ # builder.response :logger if @config.enable_logging
builder.adapter @config.adapter || :net_http
end
end
@@ -72,6 +72,7 @@ def execute(meth, path, query=nil)
meth == :get ? req.params = query : req.body = query.to_json
end
end
+ puts "Geoloqi::Session - #{meth} #{path}?#{Rack::Utils.build_query query} :\n#{raw.status}\n#{raw.headers}\n#{raw.body}" if @config.enable_logging
Response.new raw.status, raw.headers, raw.body
end
View
@@ -1,5 +1,5 @@
module Geoloqi
def self.version
- '0.9.22'
+ '0.9.23'
end
end

0 comments on commit a1b0aae

Please sign in to comment.