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/src/server/org/opends/server/core/DirectoryServer.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index ae89e98..79e378c 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -762,12 +762,12 @@
     startupErrorLogPublisher =
         TextErrorLogPublisher.getStartupTextErrorPublisher(
             new TextWriter.STDOUT());
-    addErrorLogPublisher(DN.NULL_DN, startupErrorLogPublisher);
+    addErrorLogPublisher(startupErrorLogPublisher);
 
     startupDebugLogPublisher =
         TextDebugLogPublisher.getStartupTextDebugPublisher(
             new TextWriter.STDOUT());
-    addDebugLogPublisher(DN.NULL_DN, startupDebugLogPublisher);
+    addDebugLogPublisher(startupDebugLogPublisher);
 
     // Create the MBean server that we will use for JMX interaction.
     initializeJMX();
@@ -1193,8 +1193,8 @@
       sendAlertNotification(this, ALERT_TYPE_SERVER_STARTED, msgID, message);
 
 
-      removeDebugLogPublisher(DN.NULL_DN);
-      removeErrorLogPublisher(DN.NULL_DN);
+      removeDebugLogPublisher(startupDebugLogPublisher);
+      removeErrorLogPublisher(startupErrorLogPublisher);
 
 
       // If a server.starting file exists, then remove it.

--
Gitblit v1.10.0