Freemarker error logging