1. Alexey Demidov
  2. bigdoorkit-ruby

Commits

Alexey Demidov  committed c32d2ef

pretty print debug output

  • Participants
  • Parent commits b367825
  • Branches default

Comments (0)

Files changed (1)

File lib/big_door/client.rb

View file
  • Ignore whitespace
             }
             $log.debug("delay #{'%.1f' % (ms.real * 1000)} ms")
             if response && !response.empty?
-                $log.debug( sprintf 'undecoded_response = %s', response.inspect )
+                # $log.debug( sprintf 'undecoded_response = %s', response.inspect )
                 decoded_response = JSON.parse( response )
-                $log.debug( sprintf 'decoded_response = %s', decoded_response.inspect )
+                $log.debug( sprintf 'decoded_response  = %s', JSON.pretty_generate(decoded_response) )
                 decoded_response[0]
             end
         rescue RestClient::Exception => ex