Minor fix on Upgrade's log file.
| | |
| | | // Main process |
| | | try |
| | | { |
| | | // Creates the log file. |
| | | UpgradeLog.initLogFileHandler(); |
| | | |
| | | // Upgrade's context. |
| | | UpgradeContext context = |
| | |
| | | context.setInteractiveMode(isInteractive()); |
| | | context.setForceUpgradeMode(isForceUpgrade()); |
| | | |
| | | // Creates the log file. |
| | | UpgradeLog.initLogFileHandler(); |
| | | |
| | | // Starts upgrade. |
| | | Upgrade.upgrade(context); |
| | | } |
| | |
| | | } |
| | | 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); |
| | | |
| | |
| | | changeType, lines)); |
| | | entry = Entries.modifyEntryPermissive(entry, mr.getModifications()); |
| | | changeCount++; |
| | | LOG.log(Level.INFO, |
| | | String.format("The following entry has been modified : %s", |
| | | entry.getName())); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | final String definition = |
| | | "attributeTypes: " + schema.getAttributeType(att); |
| | | definitionsList.add(definition); |
| | | LOG.log(Level.INFO, String.format("Added : %s", definition)); |
| | | LOG.log(Level.INFO, String.format("Added %s", definition)); |
| | | } |
| | | catch (UnknownSchemaElementException e) |
| | | { |
| | |
| | | final String definition = |
| | | "objectClasses: " + schema.getObjectClass(oc); |
| | | definitionsList.add(definition); |
| | | LOG.log(Level.INFO, String.format("Added : %s", definition)); |
| | | LOG.log(Level.INFO, String.format("Added %s", definition)); |
| | | } |
| | | catch (UnknownSchemaElementException e) |
| | | { |