changeset 1406:8187ddb0e827

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 18 Sep 2019 09:19:58 -0600
parents 546edc2df02c
children 1979cff9aad2
files src/luan/modules/lucene/LuceneIndex.java
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/lucene/LuceneIndex.java	Wed Sep 18 05:10:08 2019 -0600
+++ b/src/luan/modules/lucene/LuceneIndex.java	Wed Sep 18 09:19:58 2019 -0600
@@ -890,17 +890,21 @@
 	}
 
 	public void check(LuanFunction completer) throws IOException, SQLException, LuanException {
-		luanLogger.info("start check");
+		boolean hasPostgres = postgresBackup != null;
+		String msg = "start check";
+		if( hasPostgres )
+			msg += " with postgres";
+		luanLogger.info(msg);
 		CheckIndex.Status status = new CheckIndex(fsDir).checkIndex();
 		if( !status.clean )
 			luanLogger.error("index not clean");
-		if( postgresBackup != null )
+		if( hasPostgres )
 			checkPostgres(completer);
 		luanLogger.info("end check");
 	}
 
 	private void checkPostgres(LuanFunction completer) throws IOException, SQLException, LuanException {
-		luanLogger.info("start postgres check");
+		//luanLogger.info("start postgres check");
 		final PostgresBackup.Checker postgresChecker;
 		final IndexSearcher searcher;
 		writeLock.lock();