Added logging around Api.call.