From ffd067c86d98ac574cd799a9cc2fdec2070ae68a Mon Sep 17 00:00:00 2001 From: tomcz Date: Tue, 25 Oct 2011 16:24:15 +1100 Subject: [PATCH] Render as much content as possible - even if there are missing parameters --- src/main/example/ftl/HtmlFreeMarkerConfigurer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/example/ftl/HtmlFreeMarkerConfigurer.java b/src/main/example/ftl/HtmlFreeMarkerConfigurer.java index 13906e2..b240296 100644 --- a/src/main/example/ftl/HtmlFreeMarkerConfigurer.java +++ b/src/main/example/ftl/HtmlFreeMarkerConfigurer.java @@ -30,11 +30,15 @@ protected void postProcessConfiguration(Configuration config) throws IOException @Override public void afterPropertiesSet() throws IOException, TemplateException { + configureFreemarkerLogger(); + super.afterPropertiesSet(); + } + + private void configureFreemarkerLogger() { try { Logger.selectLoggerLibrary(Logger.LIBRARY_SLF4J); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } - super.afterPropertiesSet(); } }