added extra info to API endpoint logging