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/loggers/ZIPAction.java | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/loggers/ZIPAction.java b/opends/src/server/org/opends/server/loggers/ZIPAction.java
index 0ebac3b..1264ea9 100644
--- a/opends/src/server/org/opends/server/loggers/ZIPAction.java
+++ b/opends/src/server/org/opends/server/loggers/ZIPAction.java
@@ -33,8 +33,8 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
-import static org.opends.server.loggers.debug.DebugLogger.debugCaught;
-import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
+import static org.opends.server.loggers.debug.DebugLogger.*;
+import org.opends.server.loggers.debug.DebugTracer;
import org.opends.server.types.DebugLogLevel;
/**
@@ -43,6 +43,11 @@
*/
public class ZIPAction implements PostRotationAction
{
+ /**
+ * The tracer object for the debug logger.
+ */
+ private static final DebugTracer TRACER = getTracer();
+
private File originalFile;
private File newFile;
@@ -122,7 +127,7 @@
{
if (debugEnabled())
{
- debugCaught(DebugLogLevel.ERROR, ioe);
+ TRACER.debugCaught(DebugLogLevel.ERROR, ioe);
}
if (inputStreamOpen)
{
@@ -134,7 +139,7 @@
{
if (debugEnabled())
{
- debugCaught(DebugLogLevel.ERROR, fe);
+ TRACER.debugCaught(DebugLogLevel.ERROR, fe);
}
// Cannot do much. Ignore.
}
@@ -149,7 +154,7 @@
{
if (debugEnabled())
{
- debugCaught(DebugLogLevel.ERROR, ze);
+ TRACER.debugCaught(DebugLogLevel.ERROR, ze);
}
// Cannot do much. Ignore.
}
--
Gitblit v1.10.0