Add log for API call