From 540304eeec51e9279675e2f3028d044f958f11a0 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 20 Mar 2007 15:39:55 +0000
Subject: [PATCH] Updated various issues related to the debug logging framework: - Fixed a bug where debug logs are not included on unit test failures. - Weaving is only enabled for targets that run unit-tests (all, weekly, nightly, test, testall, testwithcoverage, testallwithcoverage). - Weaving is disabled for test targets that use test.methods, test.classes, or test.packages properties to specify a smaller set of tests to run. - Weaving is now controlled by the WEAVE_ENABLED property on build instead of DEBUG_BUILD. Use this property to override the default weaving behaviour for any target. - Added package-info.java to the server.loggers.debug package. - Fixed a bug where logger is not enabled when configured with an enabled configuration. - Added supress warning annotations to debug advices. No more advice not matched warnings when weaving.

---
 opends/src/server/org/opends/server/loggers/debug/DebugConfiguration.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/loggers/debug/DebugConfiguration.java b/opends/src/server/org/opends/server/loggers/debug/DebugConfiguration.java
index 5672d0c..cc51bc1 100644
--- a/opends/src/server/org/opends/server/loggers/debug/DebugConfiguration.java
+++ b/opends/src/server/org/opends/server/loggers/debug/DebugConfiguration.java
@@ -227,7 +227,7 @@
   {
 
     String enabledProp = System.getProperty(PROPERTY_DEBUG_ENABLED);
-    if(DynamicConstants.DEBUG_BUILD && (enabledProp != null &&
+    if(DynamicConstants.WEAVE_ENABLED && (enabledProp != null &&
         (enabledProp.startsWith("T") || enabledProp.startsWith("t") ||
             enabledProp.startsWith("Y") || enabledProp.startsWith("y"))))
     {

--
Gitblit v1.10.0