From 455897cc245b67d929f409a93cfa7106e835cc1f Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 01 Mar 2007 03:27:06 +0000
Subject: [PATCH] This removes old debug logging framework method calls that are going to be automatically instrumented by AspectJ. Non instrumented debug method calls are updated to use the new debug framework methods. However, the new debug logging framework is not yet active as the Aspects are not weaved in. After this revision, debug logging will be disabled in the server until the new AOP framework is complete. 

---
 opends/src/server/org/opends/server/util/Validator.java |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/Validator.java b/opends/src/server/org/opends/server/util/Validator.java
index 8be7580..68240f3 100644
--- a/opends/src/server/org/opends/server/util/Validator.java
+++ b/opends/src/server/org/opends/server/util/Validator.java
@@ -26,9 +26,8 @@
  */
 package org.opends.server.util;
 
-import static org.opends.server.loggers.Debug.debugMessage;
-import org.opends.server.types.DebugLogCategory;
-import org.opends.server.types.DebugLogSeverity;
+import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
+import static org.opends.server.loggers.debug.DebugLogger.debugError;
 import org.opends.server.types.ErrorLogCategory;
 import org.opends.server.types.ErrorLogSeverity;
 import org.opends.server.messages.UtilityMessages;
@@ -102,9 +101,6 @@
   public static final boolean ENABLE_CHECKS = true;
 
 
-  /** The fully-qualified class name for this class, which is used for
-   *  debugging purposes. */
-  private static final String CLASS_NAME = Validator.class.getName();
 
 
   /** A one-based array for parameter descriptions. */
@@ -390,8 +386,10 @@
     String messageWithStack = message + ServerConstants.EOL + getCallingStack();
 
     // Log to the debug log.
-    debugMessage(DebugLogCategory.CORE_SERVER, DebugLogSeverity.ERROR,
-            CLASS_NAME, "logError", messageWithStack);
+    if (debugEnabled())
+    {
+      debugError(messageWithStack);
+    }
 
     // Log to the error log.
     org.opends.server.loggers.Error.logError(ErrorLogCategory.CORE_SERVER,

--
Gitblit v1.10.0