not logging with analysis api call