lib/vkontakte_api/logger.rb in vkontakte_api-1.0.4 vs lib/vkontakte_api/logger.rb in vkontakte_api-1.1
- old
+ new
@@ -13,9 +13,10 @@
# Logs the request if needed.
# @param [Hash] env Request data.
def call(env)
if VkontakteApi.log_requests?
@logger.debug "#{env[:method].to_s.upcase} #{env[:url].to_s}"
+ @logger.debug "body: #{env[:body].inspect}" unless env[:method] == :get
end
super
end