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

Gaetan Boismal
27.22.2015 f15a97e6e5054f37e89cf200f0a51e5eab541c13
OPENDJ-1860 Code cleanup
1 files modified
22 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/admin/ClassLoaderProvider.java 22 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/admin/ClassLoaderProvider.java
@@ -661,14 +661,20 @@
            .getName(), EXTENSION_MANIFEST, stackTraceToSingleLineString(e));
        throw new InitializationException(message);
      }
      try {
        // Log build information of extensions in the information log
        String[] information = getBuildInformation(jarFile);
        LocalizedLogger extensionLogger = LocalizedLogger.getLocalizedLogger("org.opends.server.extensions");
        extensionLogger.info(NOTE_LOG_EXTENSION_INFORMATION, jarFile.getName(), information[1], information[2]);
      } catch(Exception e) {
        // Do not log information for that extension
      }
      logExtensionsBuildInformation(jarFile);
    }
  }
  private void logExtensionsBuildInformation(JarFile jarFile)
  {
    try {
      String[] information = getBuildInformation(jarFile);
      LocalizedLogger extensionsLogger = LocalizedLogger.getLocalizedLogger("org.opends.server.extensions");
      extensionsLogger.info(NOTE_LOG_EXTENSION_INFORMATION, jarFile.getName(), information[1], information[2]);
    } catch(Exception e) {
      // Do not log information for that extension
    }
  }