From b0a7e3cf4a65ea95c79cf002596428d0aed2e26e Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 22 May 2007 23:30:15 +0000
Subject: [PATCH] Remove the dependence on AspectJ for all non method-entry and method-exit related debug messages. All debug statements will now work w/o weaving enabled. However, method-entry and method-exit debug messages work only with weaving enabled.
---
opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java b/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
index 15626f9..2e113ab 100644
--- a/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
@@ -40,9 +40,8 @@
import org.opends.server.types.ObjectClass;
import org.opends.server.types.operation.PreParseSearchOperation;
-import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
-import static org.opends.server.loggers.debug.DebugLogger.debugInfo;
-import static org.opends.server.loggers.debug.DebugLogger.debugWarning;
+import static org.opends.server.loggers.debug.DebugLogger.*;
+import org.opends.server.loggers.debug.DebugTracer;
import static org.opends.server.messages.MessageHandler.*;
import static org.opends.server.messages.PluginMessages.*;
import static org.opends.server.util.ServerConstants.*;
@@ -60,6 +59,11 @@
extends DirectoryServerPlugin<PluginCfg>
{
/**
+ * The tracer object for the debug logger.
+ */
+ private static final DebugTracer TRACER = getTracer();
+
+ /**
* Creates a new instance of this Directory Server plugin. Every plugin must
* implement a default constructor (it is the only one that will be used to
* create plugins defined in the configuration), and every plugin constructor
@@ -144,14 +148,15 @@
{
if (debugEnabled())
{
- debugWarning("Cannot replace unknown objectclass %s", lowerName);
+ TRACER.debugWarning("Cannot replace unknown objectclass %s",
+ lowerName);
}
}
else
{
if (debugEnabled())
{
- debugInfo("Replacing objectclass %s", lowerName);
+ TRACER.debugInfo("Replacing objectclass %s", lowerName);
}
for (AttributeType at : oc.getRequiredAttributeChain())
--
Gitblit v1.10.0