From 9c954f1411d833f43c98ad3bc607c4ec4f07aaf5 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Fri, 08 Jun 2007 18:50:35 +0000
Subject: [PATCH] Fixed an issue where the error log doesn't actually log messages. Also improved the performance of the loggers when they are disabled.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
index cf90e5f..3b39dd5 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -327,22 +327,19 @@
TextDebugLogPublisher.getStartupTextDebugPublisher(
TestListener.DEBUG_TEXT_WRITER);
DebugLogger.removeAllDebugLogPublishers();
- DebugLogger.addDebugLogPublisher(DN.decode("cn=Test Debug Publisher"),
- startupDebugPublisher);
+ DebugLogger.addDebugLogPublisher(startupDebugPublisher);
TextErrorLogPublisher startupErrorPublisher =
TextErrorLogPublisher.getStartupTextErrorPublisher(
TestListener.ERROR_TEXT_WRITER);
ErrorLogger.removeAllErrorLogPublishers();
- ErrorLogger.addErrorLogPublisher(DN.decode("cn=Test Error Publisher"),
- startupErrorPublisher);
+ ErrorLogger.addErrorLogPublisher(startupErrorPublisher);
TextAccessLogPublisher startupAccessPublisher =
TextAccessLogPublisher.getStartupTextAccessPublisher(
TestListener.ACCESS_TEXT_WRITER, false);
AccessLogger.removeAllAccessLogPublishers();
- AccessLogger.addAccessLogPublisher(DN.decode("cn=Test Access Publisher"),
- startupAccessPublisher);
+ AccessLogger.addAccessLogPublisher(startupAccessPublisher);
}
catch(Exception e)
{
--
Gitblit v1.10.0