From 5adf10229cbd122b2ac2981fdc6392324356945b Mon Sep 17 00:00:00 2001
From: ulrich
Date: Sun, 09 Jan 2022 14:32:52 +0000
Subject: [PATCH] Logging entfernt

---
 src/de/uhilger/httpserver/cm/OrdnerBearbeiter.java |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/de/uhilger/httpserver/cm/OrdnerBearbeiter.java b/src/de/uhilger/httpserver/cm/OrdnerBearbeiter.java
index 9a34660..4c15578 100644
--- a/src/de/uhilger/httpserver/cm/OrdnerBearbeiter.java
+++ b/src/de/uhilger/httpserver/cm/OrdnerBearbeiter.java
@@ -24,7 +24,6 @@
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.attribute.BasicFileAttributes;
-import java.util.logging.Logger;
 
 /**
  * Ein FileVisitor zum Verschieben oder Kopieren ganzer Ordnerstrukturen mit
@@ -35,15 +34,12 @@
  */
 public class OrdnerBearbeiter extends FileTransporter implements FileVisitor {
 
-  /* Der Logger fuer diesen ListFileHandler */
-  private static final Logger logger = Logger.getLogger(OrdnerBearbeiter.class.getName());
-
   private Path targetDir;
   private int operation;
 
   public void setTargetDir(Path targetDir) {
     this.targetDir = targetDir;
-    logger.fine("targetDir: " + targetDir.toString());
+    //logger.fine("targetDir: " + targetDir.toString());
   }
 
   /**
@@ -61,14 +57,14 @@
       if (dir instanceof Path) {
         Path sourceDir = (Path) dir;
         File destFile = targetDir.resolve(sourceDir.getFileName()).toFile();
-        logger.fine("sourceDir: " + sourceDir + ", destFile: " + destFile);
+        //logger.fine("sourceDir: " + sourceDir + ", destFile: " + destFile);
         if (destFile.exists()) {
           File newDir = getNewFileName(destFile);
           destFile.renameTo(newDir);
         }
         destFile.mkdir();
         this.targetDir = destFile.toPath();
-        logger.fine("targetDir now: " + targetDir.toString());
+        //logger.fine("targetDir now: " + targetDir.toString());
       }
     }
     return FileVisitResult.CONTINUE;
@@ -84,10 +80,10 @@
           destFile = getNewFileName(destFile);
         }
         if (operation == FileManager.OP_MOVE) {
-          logger.fine("move source: " + source.toString() + ", destFile: " + destFile.getAbsolutePath());
+          //logger.fine("move source: " + source.toString() + ", destFile: " + destFile.getAbsolutePath());
           Files.move(source, destFile.toPath());
         } else if (operation == FileManager.OP_COPY) {
-          logger.fine("copy source: " + source.toString() + ", destFile: " + destFile.getAbsolutePath());
+          //logger.fine("copy source: " + source.toString() + ", destFile: " + destFile.getAbsolutePath());
           Files.copy(source, destFile.toPath());
         }
       }
@@ -109,11 +105,11 @@
         Path finishedDir = (Path) dir;
         targetDir = targetDir.getParent();
         if(operation == FileManager.OP_MOVE) {
-          logger.fine("delete " + finishedDir.toString());
+          //logger.fine("delete " + finishedDir.toString());
           Files.delete(finishedDir);
         }
       }
-      logger.fine("targetDir now: " + targetDir.toString());
+      //logger.fine("targetDir now: " + targetDir.toString());
     } else {
       Files.delete((Path) dir);
     }

--
Gitblit v1.9.3