# HG changeset patch # User Tom Rodriguez # Date 1410255403 -7200 # Node ID 2740dad59eb77d84524cb94d4d7dfc462fe52925 # Parent 8456194ca311724850f29eaa7551a9001c5569b7 Fix forceLog diff -r 8456194ca311 -r 2740dad59eb7 graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java --- 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()); } /** diff -r 8456194ca311 -r 2740dad59eb7 graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DelegatingDebugConfig.java --- 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,