Permalink
Browse files

Fix: one of the `puts` was ignoring @@logging flag

  • Loading branch information...
1 parent a0138f5 commit ba8bd0048683cede11000295195256cfd5460f25 @mmozuras mmozuras committed Jul 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mini_fb.rb
View
@@ -694,7 +694,7 @@ def self.fetch(url, options={})
return res_hash
rescue RestClient::Exception => ex
- puts "ex.http_code=" + ex.http_code.to_s
+ puts "ex.http_code=" + ex.http_code.to_s if @@logging
puts 'ex.http_body=' + ex.http_body if @@logging
res_hash = JSON.parse(ex.http_body) # probably should ensure it has a good response
raise MiniFB::FaceBookError.new(ex.http_code, "#{res_hash["error"]["type"]}: #{res_hash["error"]["message"]}")

0 comments on commit ba8bd00

Please sign in to comment.