Skip to content
Browse files

log start and stop of both services.

  • Loading branch information...
1 parent 5e37db9 commit 5d92db9785f2f05292cefff1cba97e7804e42e45 Robert Newson committed Apr 18, 2009
View
2 src/main/java/com/github/rnewson/couchdb/lucene/Index.java
@@ -280,6 +280,7 @@ private void delete(final String dbname, final Progress progress, final IndexWri
}
public static void main(String[] args) throws Exception {
+ Utils.LOG.info("indexer started.");
final Indexer indexer = new Indexer(FSDirectory.getDirectory(Config.INDEX_DIR));
final Thread thread = new Thread(indexer, "index");
thread.setDaemon(true);
@@ -293,6 +294,7 @@ public static void main(String[] args) throws Exception {
indexer.setStale(true);
}
}
+ Utils.LOG.info("indexer stopped.");
}
}
View
1 src/main/java/com/github/rnewson/couchdb/lucene/Main.java
@@ -28,7 +28,6 @@ public static void main(final String[] args) throws Exception {
if (System.getProperty("couchdb.log.dir") == null) {
System.setProperty("couchdb.log.dir", System.getProperty("java.io.tmpdir"));
}
- Utils.LOG.info("couchdb-lucene started.");
if (args.length >= 1 && args[0].equals("-index")) {
Index.main(args);
return;
View
2 src/main/java/com/github/rnewson/couchdb/lucene/Search.java
@@ -35,6 +35,7 @@
public final class Search {
public static void main(final String[] args) {
+ Utils.LOG.info("searcher started.");
try {
IndexReader reader = null;
IndexSearcher searcher = null;
@@ -132,6 +133,7 @@ public static void main(final String[] args) {
} catch (final Exception e) {
System.out.println(Utils.error(500, e.getMessage()));
}
+ Utils.LOG.info("searcher stopped.");
}
private static long size(final Directory dir) throws IOException {

0 comments on commit 5d92db9

Please sign in to comment.
Something went wrong with that request. Please try again.