Fix console log statement so it doesn't log the entire doc