Permalink
Browse files

Checks log level before inspecting a debug log

  • Loading branch information...
1 parent 917a896 commit 0d9c36745a9e3ecb0332ab1802d34cb42e78b6d0 @treeder treeder committed Dec 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mini_fb.rb
View
@@ -643,7 +643,7 @@ def self.fetch(url, options={})
resp = RestClient.get url
end
- @@log.debug 'resp=' + resp.to_s
+ @@log.debug 'resp=' + resp.to_s if @@log.debug?
if options[:response_type] == :params
# Some methods return a param like string, for example: access_token=11935261234123|rW9JMxbN65v_pFWQl5LmHHABC

0 comments on commit 0d9c367

Please sign in to comment.