Adjust logging in template.