From a6f1f3292dce4eb1aa7a162e06bf0980b90cb5f8 Mon Sep 17 00:00:00 2001 From: ulrich Date: Tue, 06 Jul 2021 08:38:19 +0000 Subject: [PATCH] Logging erweitert --- src/de/uhilger/httpserver/template/TemplateActor.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/de/uhilger/httpserver/template/TemplateActor.java b/src/de/uhilger/httpserver/template/TemplateActor.java index 87f51e6..ce670f6 100644 --- a/src/de/uhilger/httpserver/template/TemplateActor.java +++ b/src/de/uhilger/httpserver/template/TemplateActor.java @@ -70,12 +70,15 @@ Map attributes = exchange.getHttpContext().getAttributes(); String fileBase = helper.getAttrStr(attributes, FileHandler.ATTR_FILE_BASE, STR_EMPTY); File fileRoot = new File(fileBase); + logger.fine("fileRoot: " + fileRoot.getAbsolutePath()); String template = helper.getAttrStr(attributes, ATTR_TEMPLATE, STR_EMPTY); File templateFile = new File(fileRoot, template); if(templateFile.exists()) { + logger.fine("using template " + templateFile.getAbsolutePath()); mf = new NeonMustacheFactory(fileRoot); m = mf.compile(template); } else { + logger.fine("template " + templateFile.getAbsolutePath() + " not found"); mf = new NeonMustacheFactory(); m = mf.compile(template); } -- Gitblit v1.9.3