From 31d9df399ba6fa4a22f732fe29c2009cbdbf2500 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Sun, 09 Jan 2022 14:39:45 +0000
Subject: [PATCH] Logging entfernt

---
 src/de/uhilger/httpserver/template/TemplateActor.java |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/de/uhilger/httpserver/template/TemplateActor.java b/src/de/uhilger/httpserver/template/TemplateActor.java
index 20038f7..b39e66b 100644
--- a/src/de/uhilger/httpserver/template/TemplateActor.java
+++ b/src/de/uhilger/httpserver/template/TemplateActor.java
@@ -21,14 +21,11 @@
 import com.github.mustachejava.MustacheFactory;
 import com.sun.net.httpserver.HttpExchange;
 import de.uhilger.httpserver.base.HttpHelper;
-import de.uhilger.httpserver.base.HttpResponder;
 import de.uhilger.httpserver.base.handler.FileHandler;
 import java.io.File;
 import java.io.IOException;
-import java.io.OutputStream;
 import java.io.StringWriter;
 import java.util.Map;
-import java.util.logging.Logger;
 
 /**
  * Der TemplateActor rendert den Inhalt einer Map in 
@@ -38,8 +35,6 @@
  * @version 1, 04.07.2021
  */
 public class TemplateActor {
-  
-  private static final Logger logger = Logger.getLogger(TemplateActor.class.getName());  
   
   public static final String STR_DOT = ".";
   public static final String STR_EMPTY = "";
@@ -70,15 +65,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());
+    //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());
+      //logger.fine("using template " + templateFile.getAbsolutePath());
       mf = new NeonMustacheFactory(fileRoot);
       m = mf.compile(template);
     } else {
-      logger.fine("template " + templateFile.getAbsolutePath() + " not found");
+      //logger.fine("template " + templateFile.getAbsolutePath() + " not found");
       mf = new NeonMustacheFactory();
       m = mf.compile(template);
     }

--
Gitblit v1.9.3