lib/keen/client.rb in keen-0.1.11 vs lib/keen/client.rb in keen-0.1.12

- old
+ new

@@ -7,11 +7,11 @@ module Keen class Client - attr_accessor :storage_handler, :project_id, :auth_token, :options + attr_accessor :storage_handler, :project_id, :auth_token, :options, :logging def base_url if @options[:base_url] @options[:base_url] else @@ -146,9 +146,13 @@ request.body = request_body request["Content-Type"] = "application/json" request["Authorization"] = auth_token resp = http.request(request) + + if @logging + puts resp.body + end return JSON.parse resp.body end