Added logging function to update-json.sh