Log stderr in API calls