Improve API request logging