fixed URL and update log output for missing api key