From 4783adc14c2d6b96260052d3b634eafa500c6ddf 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.
---
opendj-sdk/opends/src/server/org/opends/server/schema/AuthPasswordExactEqualityMatchingRule.java | 26 ++++++++------------------
1 files changed, 8 insertions(+), 18 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/schema/AuthPasswordExactEqualityMatchingRule.java b/opendj-sdk/opends/src/server/org/opends/server/schema/AuthPasswordExactEqualityMatchingRule.java
index 0a3b5ab..9b5e6a7 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/schema/AuthPasswordExactEqualityMatchingRule.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/schema/AuthPasswordExactEqualityMatchingRule.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.schema;
@@ -41,7 +41,9 @@
import org.opends.server.types.ErrorLogSeverity;
import org.opends.server.types.InitializationException;
-import static org.opends.server.loggers.Debug.*;
+import static org.opends.server.loggers.debug.DebugLogger.debugCought;
+import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
+import org.opends.server.types.DebugLogLevel;
import static org.opends.server.loggers.Error.*;
import static org.opends.server.schema.SchemaConstants.*;
@@ -54,11 +56,6 @@
public class AuthPasswordExactEqualityMatchingRule
extends EqualityMatchingRule
{
- /**
- * The fully-qualified name of this class for debugging purposes.
- */
- private static final String CLASS_NAME =
- "org.opends.server.schema.AuthPasswordExactEqualityMatchingRule";
@@ -69,7 +66,6 @@
{
super();
- assert debugConstructor(CLASS_NAME);
}
@@ -91,8 +87,6 @@
public void initializeMatchingRule(ConfigEntry configEntry)
throws ConfigException, InitializationException
{
- assert debugEnter(CLASS_NAME, "initializeMatchingRule",
- String.valueOf(configEntry));
// No initialization is required.
}
@@ -107,7 +101,6 @@
*/
public String getName()
{
- assert debugEnter(CLASS_NAME, "getName");
return EMR_AUTH_PASSWORD_EXACT_NAME;
}
@@ -121,7 +114,6 @@
*/
public String getOID()
{
- assert debugEnter(CLASS_NAME, "getOID");
return EMR_AUTH_PASSWORD_EXACT_OID;
}
@@ -136,7 +128,6 @@
*/
public String getDescription()
{
- assert debugEnter(CLASS_NAME, "getDescription");
// There is no standard description for this matching rule.
return EMR_AUTH_PASSWORD_EXACT_DESCRIPTION;
@@ -152,7 +143,6 @@
*/
public String getSyntaxOID()
{
- assert debugEnter(CLASS_NAME, "getSyntaxOID");
return SYNTAX_AUTH_PASSWORD_OID;
}
@@ -173,7 +163,6 @@
public ByteString normalizeValue(ByteString value)
throws DirectoryException
{
- assert debugEnter(CLASS_NAME, "normalizeValue", String.valueOf(value));
try
@@ -195,7 +184,10 @@
}
catch (DirectoryException de)
{
- assert debugException(CLASS_NAME, "normalizeValue", de);
+ if (debugEnabled())
+ {
+ debugCought(DebugLogLevel.ERROR, de);
+ }
switch (DirectoryServer.getSyntaxEnforcementPolicy())
{
@@ -225,8 +217,6 @@
*/
public boolean areEqual(ByteString value1, ByteString value2)
{
- assert debugEnter(CLASS_NAME, "areEqual", String.valueOf(value1),
- String.valueOf(value2));
// Since the values are already normalized, we just need to compare the
// associated byte arrays.
--
Gitblit v1.10.0