w0lfschild/winBuddy

annoying jdk console output

mgroth0 opened this issue · 2 comments

Every single time a start the the app I am developing, I am forced to see:
2017-05-14 15:33:32.395 java[729:44480872] Loading winBuddy... 2017-05-14 15:33:32.396 java[729:44480872] winBuddy loaded into net.java.openjdk.cmd on macOS 10.12

I like winBuddy, so I don't want to disable it. I tried checking every single application on the MySIMBL blacklist (which btw took forever, an "uncheck all" button would be nice), and these console messages still appear. I tried debugging my program to see when exactly they appear, which seems to be the moment I first statically initialize a class that extends JCheckBoxMenuItem (I guess because its menu bar related?). But I don't think my thread is printing it, and I have no idea how to turn it off. Next thing I'm going to have to do is put all my stdout or stderr through a filter to hide these messages. Hope it works for now, but I don't want to include that bit of code when I release the sources.

Looks like this always prints the first time that a swing component is created. Also, I could not turn it off by filtering stdout or stdin through my own subclass of PrintStream. I believe its printing through stderr but it's not coming through print, println or printf. Perhaps it's another method but I don't have time to check all of them.

I was totally able to comment out those two lines in XCode and rebuild the plugin and add it back into MySIMBL. Wow, other people's XCode repos usually never build so easily for me. Thanks!