mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
18.44.2008 35a408038c1de64a6f13f0e7b246a645e9945e3c
opends/src/server/org/opends/server/tools/VerifyIndex.java
@@ -30,6 +30,7 @@
import org.opends.server.api.Backend;
import org.opends.server.api.ErrorLogPublisher;
import org.opends.server.api.DebugLogPublisher;
import org.opends.server.backends.jeb.BackendImpl;
import org.opends.server.backends.jeb.VerifyConfig;
import org.opends.server.config.ConfigException;
@@ -40,6 +41,8 @@
import org.opends.server.loggers.ThreadFilterTextErrorLogPublisher;
import org.opends.server.loggers.TextWriter;
import org.opends.server.loggers.ErrorLogger;
import org.opends.server.loggers.debug.TextDebugLogPublisher;
import org.opends.server.loggers.debug.DebugLogger;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.DN;
import org.opends.server.types.InitializationException;
@@ -73,6 +76,7 @@
public class VerifyIndex
{
  private static ErrorLogPublisher errorLogPublisher = null;
  private static DebugLogPublisher debugLogPublisher = null;
  /**
   * Processes the command-line arguments and invokes the verify process.
   *
@@ -86,6 +90,10 @@
    {
      ErrorLogger.removeErrorLogPublisher(errorLogPublisher);
    }
    if(debugLogPublisher != null)
    {
      DebugLogger.removeDebugLogPublisher(debugLogPublisher);
    }
    if(retCode != 0)
    {
@@ -388,6 +396,11 @@
                                                  new TextWriter.STREAM(out));
        ErrorLogger.addErrorLogPublisher(errorLogPublisher);
        debugLogPublisher =
          TextDebugLogPublisher.getStartupTextDebugPublisher(
              new TextWriter.STDOUT());
        DebugLogger.addDebugLogPublisher(debugLogPublisher);
      }
      catch(Exception e)
      {