Added logging for twig templates with an error