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

Violette Roche-Montane
03.34.2013 764f8df4627072ebb74aeb36f0b54fb70927d307
opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/UpgradeCli.java
@@ -358,6 +358,8 @@
    // Main process
    try
    {
      // Creates the log file.
      UpgradeLog.initLogFileHandler();
      // Upgrade's context.
      UpgradeContext context =
@@ -369,9 +371,6 @@
      context.setInteractiveMode(isInteractive());
      context.setForceUpgradeMode(isForceUpgrade());
      // Creates the log file.
      UpgradeLog.initLogFileHandler();
      // Starts upgrade.
      Upgrade.upgrade(context);
    }
@@ -384,7 +383,8 @@
    }
    catch (Exception ex)
    {
      LOG.log(SEVERE, ex.getMessage());
      LOG.log(SEVERE, ERR_UPGRADE_MAIN_UPGRADE_PROCESS.get(ex
          .getMessage()).toString());
      println(Style.ERROR, ERR_UPGRADE_MAIN_UPGRADE_PROCESS.get(ex
          .getMessage()), 0);