lib/vmdb/loggers/instrument.rb
# To be used as Excon's request logger, the logger must respond to
#   #instrument as in ActiveSupport::Notifications.
#   Implementation derived from Excon::StandardInstrumentor
To be used as Excon's request logger, the logger must respond to
instrument as in ActiveSupport::Notifications.
Implementation derived from Excon::StandardInstrumentor
To be used as Excon ' s request logger the logger must respond to instrument as in ActiveSupport :: Notifications . Implementation derived from Excon :: StandardInstrumentor
def parse_body(body)
        JSON.parse(body) if body
      rescue JSON::ParserError
        body
      end
def parse_body ( body ) JSON . parse ( body ) if body rescue JSON :: ParserError body end
To be used as Excon's request logger, the logger must respond to
instrument as in ActiveSupport::Notifications.
To be used as Excon ' s request logger the logger must respond to instrument as in ActiveSupport :: Notifications .
body