From e04891622f65552b1e12f7caecdf5e2dcd5ee374 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 19 Aug 2006 22:24:30 +0000
Subject: [PATCH] Make the following updates to the OpenDS code:

---
 opends/src/server/org/opends/server/tools/ImportLDIF.java |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/ImportLDIF.java b/opends/src/server/org/opends/server/tools/ImportLDIF.java
index c5e8424..186d248 100644
--- a/opends/src/server/org/opends/server/tools/ImportLDIF.java
+++ b/opends/src/server/org/opends/server/tools/ImportLDIF.java
@@ -113,6 +113,7 @@
     BooleanArgument isCompressed            = null;
     BooleanArgument isEncrypted             = null;
     BooleanArgument overwriteRejects        = null;
+    BooleanArgument quietMode               = null;
     BooleanArgument replaceExisting         = null;
     BooleanArgument skipSchemaValidation    = null;
     StringArgument  backendID               = null;
@@ -251,6 +252,11 @@
       argParser.addArgument(isEncrypted);
 
 
+      quietMode = new BooleanArgument("quietmode", 'q', "quiet",
+                                      MSGID_LDIFIMPORT_DESCRIPTION_QUIET);
+      argParser.addArgument(quietMode);
+
+
       displayUsage =
            new BooleanArgument("help", 'H', "help",
                                MSGID_LDIFIMPORT_DESCRIPTION_USAGE);
@@ -414,11 +420,14 @@
     }
 
 
-    // FIXME -- Install a custom logger to capture information about the state
-    // of the import.
-    StartupErrorLogger startupLogger = new StartupErrorLogger();
-    startupLogger.initializeErrorLogger(null);
-    addErrorLogger(startupLogger);
+    if (! quietMode.isPresent())
+    {
+      // FIXME -- Install a custom logger to capture information about the state
+      // of the import.
+      StartupErrorLogger startupLogger = new StartupErrorLogger();
+      startupLogger.initializeErrorLogger(null);
+      addErrorLogger(startupLogger);
+    }
 
 
     // Initialize all the password policy information.

--
Gitblit v1.10.0