Skip to content

Commit f49623f

Browse files
committed
Use Logger to print debug output. (GR-68210)
1 parent b1fea44 commit f49623f

File tree

1 file changed

+3
-2
lines changed
  • substratevm/src/com.oracle.svm.jdwp.resident/src/com/oracle/svm/jdwp/resident/impl

1 file changed

+3
-2
lines changed

substratevm/src/com.oracle.svm.jdwp.resident/src/com/oracle/svm/jdwp/resident/impl/ResidentJDWP.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import com.oracle.svm.core.interpreter.InterpreterFrameSourceInfo;
4646
import com.oracle.svm.core.layeredimagesingleton.MultiLayeredImageSingleton;
4747
import com.oracle.svm.core.locks.VMMutex;
48-
import com.oracle.svm.core.log.Log;
4948
import com.oracle.svm.core.meta.SubstrateObjectConstant;
5049
import com.oracle.svm.core.thread.VMThreads;
5150
import com.oracle.svm.core.util.VMError;
@@ -398,7 +397,9 @@ private static long[] getAllThreadIds() {
398397
mutex.unlock();
399398
}
400399
ids = Arrays.copyOf(ids, i);
401-
Log.log().string("getAllThreadIds(): " + Arrays.toString(ids)).newline();
400+
if (LOGGER.isLoggable()) {
401+
LOGGER.log("getAllThreadIds(): " + Arrays.toString(ids));
402+
}
402403
return ids;
403404
}
404405

0 commit comments

Comments
 (0)