changeset 1227:a12dba1f0787

better logging
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 01 Apr 2018 19:59:15 -0600
parents b6aa2cd51b02
children f8dd726bd4f5
files src/luan/modules/lucene/LuceneIndex.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/lucene/LuceneIndex.java	Sun Apr 01 19:42:47 2018 -0600
+++ b/src/luan/modules/lucene/LuceneIndex.java	Sun Apr 01 19:59:15 2018 -0600
@@ -94,6 +94,7 @@
 	private final MultiFieldParser mfp;
 	public final LuanTable indexed_only_fields = new LuanTable();
 	private final Analyzer analyzer;
+	private final Exception created = new Exception("created");
 
 	private static ConcurrentMap<File,AtomicInteger> globalWriteCounters = new ConcurrentHashMap<File,AtomicInteger>();
 	private File fileDir;
@@ -334,7 +335,7 @@
 
 	protected void finalize() throws Throwable {
 		if( !isClosed ) {
-			logger.error("not closed");
+			logger.error("not closed",created);
 			close();
 		}
 		super.finalize();