From c58635763128604de66956e71d85ac42fe7ea07b Mon Sep 17 00:00:00 2001 From: vshcherb Date: Fri, 30 Dec 2011 12:26:37 +0100 Subject: [PATCH] Fix logging --- .../src/net/osmand/data/index/IndexBatchCreator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java index 3322d1b80d..e1834bb8c0 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java @@ -30,6 +30,7 @@ import java.util.logging.FileHandler; import java.util.logging.Handler; import java.util.logging.LogManager; import java.util.logging.Logger; +import java.util.logging.Level; import java.util.logging.SimpleFormatter; import javax.xml.parsers.DocumentBuilderFactory; @@ -569,6 +570,7 @@ public class IndexBatchCreator { } if(fh != null) { LogManager.getLogManager().getLogger("").removeHandler(fh); + fh.close(); } } catch (Exception e) { log.error("Exception generating indexes for " + f.getName(), e); //$NON-NLS-1$