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/api/DirectoryThread.java |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/DirectoryThread.java b/opends/src/server/org/opends/server/api/DirectoryThread.java
index ed59d1a..e4f93cc 100644
--- a/opends/src/server/org/opends/server/api/DirectoryThread.java
+++ b/opends/src/server/org/opends/server/api/DirectoryThread.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Portions Copyright 2006 Sun Microsystems, Inc.
+ *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
  */
 package org.opends.server.api;
 
@@ -31,7 +31,6 @@
 import org.opends.server.backends.task.Task;
 import org.opends.server.core.DirectoryServer;
 
-import static org.opends.server.loggers.Debug.*;
 import static org.opends.server.util.ServerConstants.*;
 import static org.opends.server.util.StaticUtils.*;
 
@@ -58,11 +57,6 @@
 public class DirectoryThread
        extends Thread
 {
-  /**
-   * The fully-qualified name of this class for debugging purposes.
-   */
-  private static final String CLASS_NAME =
-       "org.opends.server.core.DirectoryThread";
 
 
 
@@ -90,7 +84,6 @@
     super (DirectoryServer.getDirectoryThreadGroup(), target,
            threadName);
 
-    assert debugConstructor(CLASS_NAME, String.valueOf(threadName));
 
     init();
   }
@@ -106,7 +99,6 @@
   {
     super(DirectoryServer.getDirectoryThreadGroup(), threadName);
 
-    assert debugConstructor(CLASS_NAME, String.valueOf(threadName));
 
     init();
   }
@@ -126,8 +118,6 @@
   {
     super(threadGroup, threadName);
 
-    assert debugConstructor(CLASS_NAME, String.valueOf(threadGroup),
-                            String.valueOf(threadName));
 
     init();
   }
@@ -175,7 +165,6 @@
    */
   public StackTraceElement[] getCreationStackTrace()
   {
-    assert debugEnter(CLASS_NAME, "getCreationStackTrace");
 
     return creationStackTrace;
   }
@@ -192,7 +181,6 @@
    */
   public Thread getParentThread()
   {
-    assert debugEnter(CLASS_NAME, "getParentThread");
 
     return parentThread;
   }
@@ -209,7 +197,6 @@
    */
   public Task getAssociatedTask()
   {
-    assert debugEnter(CLASS_NAME, "getAssociatedTask");
 
     return task;
   }
@@ -225,7 +212,6 @@
    */
   public void setAssociatedTask(Task task)
   {
-    assert debugEnter(CLASS_NAME, "setAssociatedTask");
 
     this.task = task;
   }

--
Gitblit v1.10.0