]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/utils/SSASimplificationContext.java
Make it possible to debug SCL compiler in production builds
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / codegen / utils / SSASimplificationContext.java
index aea1c033b8f71e73866d6c3eb00230ac18ea461b..f7c6d309705c02b68f555f692074bfc0c8438d02 100644 (file)
@@ -25,7 +25,7 @@ public class SSASimplificationContext {
 
     public void markModified(String description) {
         if(SCLCompilerConfiguration.PRINT_OPTIMIZATION_TRANSFORMATIONS)
-            System.out.println("(" + modiId + ") DID " + description);
+            LOGGER.info("(" + modiId + ") DID " + description);
         modified = true;
         if(SCLCompilerConfiguration.VALIDATE_AFTER_OPTIMIZATIONS)
             module.validate();
@@ -55,8 +55,8 @@ public class SSASimplificationContext {
     }
     
     public void printConstant(Name name) {
-        System.out.println("--- " + name + " ---------------------------");
-        System.out.println(module.get(name));
+        LOGGER.info("--- " + name + " ---------------------------");
+        LOGGER.info("{}", module.get(name));
     }
 
     public void validate() {