Use faraday middleware for logging. Make sure JSON encoding being used correctly