changeset 17069:2740dad59eb7

Fix forceLog
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Tue, 09 Sep 2014 11:36:43 +0200
parents 8456194ca311
children 6e45ae59781c
files graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DelegatingDebugConfig.java
diffstat 2 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java	Tue Sep 09 11:35:07 2014 +0200
+++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java	Tue Sep 09 11:36:43 2014 +0200
@@ -30,6 +30,7 @@
 import java.util.*;
 import java.util.concurrent.*;
 
+import com.oracle.graal.debug.DelegatingDebugConfig.Level;
 import com.oracle.graal.debug.internal.*;
 
 /**
@@ -318,7 +319,7 @@
         for (Object obj : context()) {
             context.add(obj);
         }
-        return Debug.sandbox("forceLog", new DelegatingDebugConfig().enable(LOG).enable(LOG_METHOD), context.toArray());
+        return Debug.sandbox("forceLog", new DelegatingDebugConfig().override(Level.LOG, Integer.MAX_VALUE).enable(LOG_METHOD), context.toArray());
     }
 
     /**
--- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DelegatingDebugConfig.java	Tue Sep 09 11:35:07 2014 +0200
+++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DelegatingDebugConfig.java	Tue Sep 09 11:36:43 2014 +0200
@@ -39,18 +39,10 @@
      */
     public enum Feature {
         /**
-         * @see Debug#isLogEnabled()
-         */
-        LOG,
-        /**
          * @see Debug#isLogEnabledForMethod()
          */
         LOG_METHOD,
         /**
-         * @see Debug#isDumpEnabled()
-         */
-        DUMP,
-        /**
          * @see Debug#isDumpEnabledForMethod()
          */
         DUMP_METHOD,