Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better logging

  • Loading branch information...
commit a1b0aaeec40f83f8cb754243dee9cf6c45c686a2 1 parent 9149168
@kyledrake kyledrake authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  lib/geoloqi/session.rb
  2. +1 −1  lib/geoloqi/version.rb
View
3  lib/geoloqi/session.rb
@@ -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
2  lib/geoloqi/version.rb
@@ -1,5 +1,5 @@
module Geoloqi
def self.version
- '0.9.22'
+ '0.9.23'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.