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

Gaetan Boismal
20.38.2016 71695c2e99143ed6821b4ba50f898567c440750f
opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/DSConfig.java
@@ -52,6 +52,7 @@
import java.util.SortedSet;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.logging.Logger;
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.i18n.LocalizableMessageDescriptor.Arg1;
@@ -784,6 +785,7 @@
     * @return Zero to indicate that the program completed successfully, or non-zero to indicate that an error occurred.
     */
    public static int main(String[] args, OutputStream outStream, OutputStream errStream) {
        disableConfigurationFrameworkConsoleLogging();
        final DSConfig app = new DSConfig(outStream, errStream);
        app.sessionStartTime = System.currentTimeMillis();
@@ -800,6 +802,14 @@
        return app.run(args);
    }
    /**
     * Prevent configuration framework to log on the console.
     * @see OPENDJ-3140 for more details.
     */
    private static void disableConfigurationFrameworkConsoleLogging() {
        Logger.getLogger("com.forgerock.opendj.ldap.config.config").setUseParentHandlers(false);
    }
    /** The factory which the application should use to retrieve its management context. */
    private LDAPManagementContextFactory factory;