From acee9ea190e753f832be588eb384522a6d65ed84 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.

---
 opendj-sdk/opends/src/server/org/opends/server/loggers/GZIPAction.java |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/loggers/GZIPAction.java b/opendj-sdk/opends/src/server/org/opends/server/loggers/GZIPAction.java
index d7e06bc..a79730c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/loggers/GZIPAction.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/loggers/GZIPAction.java
@@ -32,8 +32,8 @@
 import java.io.IOException;
 import java.util.zip.GZIPOutputStream;
 
-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;
 
 /**
@@ -42,6 +42,11 @@
  */
 public class GZIPAction implements PostRotationAction
 {
+  /**
+   * The tracer object for the debug logger.
+   */
+  private static final DebugTracer TRACER = getTracer();
+
 
   private File originalFile;
   private File newFile;
@@ -118,7 +123,7 @@
     {
       if (debugEnabled())
       {
-        debugCaught(DebugLogLevel.ERROR, ioe);
+        TRACER.debugCaught(DebugLogLevel.ERROR, ioe);
       }
       if (inputStreamOpen)
       {
@@ -130,7 +135,7 @@
         {
           if (debugEnabled())
           {
-            debugCaught(DebugLogLevel.ERROR, fe);
+            TRACER.debugCaught(DebugLogLevel.ERROR, fe);
           }
           // Cannot do much. Ignore.
         }
@@ -145,7 +150,7 @@
         {
           if (debugEnabled())
           {
-            debugCaught(DebugLogLevel.ERROR, ge);
+            TRACER.debugCaught(DebugLogLevel.ERROR, ge);
           }
           // Cannot do much. Ignore.
         }

--
Gitblit v1.10.0