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

neil_a_wilson
01.11.2007 f03aa9b7cb6576bee78e0ed72e1a6ee8513ebd2b
Update the access logger so that it will not suppress internal operations when
running the test cases.
3 files modified
8 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/loggers/TextAccessLogPublisher.java 4 ●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java 2 ●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java
@@ -453,7 +453,7 @@
      AccessLogPublisher startupAccessPublisher =
              TextAccessLogPublisher.getStartupTextAccessPublisher(
                      accessWriter);
                      accessWriter, true);
      AccessLogger.addAccessLogPublisher(
              DN.decode("cn=QuickSetup,cn=Loggers,cn=config"),
              startupAccessPublisher);
opends/src/server/org/opends/server/loggers/TextAccessLogPublisher.java
@@ -73,14 +73,16 @@
   * to the console when the server starts up.
   *
   * @param writer The text writer where the message will be written to.
   * @param suppressInternal Indicates whether to suppress internal operations.
   * @return The instance of the text error log publisher that will print
   * all messages to standard out.
   */
  public static TextAccessLogPublisher
      getStartupTextAccessPublisher(TextWriter writer)
      getStartupTextAccessPublisher(TextWriter writer, boolean suppressInternal)
  {
    TextAccessLogPublisher startupPublisher = new TextAccessLogPublisher();
    startupPublisher.writer = writer;
    startupPublisher.suppressInternalOperations = suppressInternal;
    return startupPublisher;
  }
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -339,7 +339,7 @@
    TextAccessLogPublisher startupAccessPublisher =
        TextAccessLogPublisher.getStartupTextAccessPublisher(
            TestListener.ACCESS_TEXT_WRITER);
            TestListener.ACCESS_TEXT_WRITER, false);
    AccessLogger.removeAllAccessLogPublishers();
    AccessLogger.addAccessLogPublisher(DN.decode("cn=Test Access Publisher"),
                                       startupAccessPublisher);