Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fixed logging

danielr726218dd4a36
diff --git a/source/yacy.java b/source/yacy.java
index 6716d994a..2f8b57d12 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -199,7 +199,8 @@ public final class yacy {
// setting up logging
f = new File(homePath, "DATA/LOG/yacy.logging");
- if (!(new File(f.getPath()).exists())) f.mkdirs();
+ final File logPath =new File(f.getPath());
+ if (!logPath.exists()) logPath.mkdirs();
if (!f.exists()) try {
serverFileUtils.copy(new File(homePath, "yacy.logging"), f);
}catch (IOException e){