Skip to content
Snippets Groups Projects
Commit c228f3b5 authored by buczekp's avatar buczekp
Browse files

improved info logging

SVN: 17250
parent 6fb1d59d
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,10 @@ public final class FullTextIndexUpdater extends HibernateDaoSupport implements ...@@ -75,6 +75,10 @@ public final class FullTextIndexUpdater extends HibernateDaoSupport implements
public void start() public void start()
{ {
if (operationLog.isInfoEnabled())
{
operationLog.info("Starting updater thread with queue size: " + updaterQueue.size());
}
Thread thread = new Thread(new FullTextIndexUpdaterRunnable(), "Full Text Index Updater"); Thread thread = new Thread(new FullTextIndexUpdaterRunnable(), "Full Text Index Updater");
thread.setDaemon(true); thread.setDaemon(true);
thread.setPriority(Thread.MIN_PRIORITY); thread.setPriority(Thread.MIN_PRIORITY);
...@@ -111,7 +115,7 @@ public final class FullTextIndexUpdater extends HibernateDaoSupport implements ...@@ -111,7 +115,7 @@ public final class FullTextIndexUpdater extends HibernateDaoSupport implements
final IndexMode indexMode = context.getIndexMode(); final IndexMode indexMode = context.getIndexMode();
if (indexMode == IndexMode.NO_INDEX) // sanity check if (indexMode == IndexMode.NO_INDEX) // sanity check
{ {
operationLog.debug(String.format("Stopping index updater process as " operationLog.info(String.format("Stopping index updater process as "
+ " '%s' mode was configured.", indexMode)); + " '%s' mode was configured.", indexMode));
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment