< prev index next >

src/jdk.jextract/share/classes/com/sun/tools/jextract/HeaderFile.java

Print this page

        

@@ -62,11 +62,13 @@
      */
     void useCodeFactory(CodeFactory cf) {
         if (null != this.cf) {
             logger.config(() -> "CodeFactory had been initialized for " + path);
             // Diagnosis code
-            new Throwable().printStackTrace(System.out);
+            if (Main.DEBUG) {
+                new Throwable().printStackTrace(System.err);
+            }
         } else {
             this.cf = cf;
         }
     }
 
< prev index next >