orsjb / HappyBrackets

HappyBrackets is an audio-focused library and toolkit for creative coding for the internet of things.
Apache License 2.0
36 stars 3 forks source link

Too much debug output on HB.jar #24

Open orsjb opened 8 years ago

orsjb commented 8 years ago

The HB.jar that gets built by gradle and put into the Developer Kit (both Device and IntelliJ project), seems to be spewing out too much output. @samgwise says that this build (from gradle deploy) should result in a jar that is set to output only errors, I think?

Also there is confusion now as to whether the output on the device is going to the file stdout or elsewhere. Most importantly, what advice should we be giving users about how to write debug code?

orsjb commented 7 years ago

For running on devices, and debugging in the IntelliJ plugin I think this is the preferred design: Logging includes errors but not info or debug messages (not sure about this). Logging is piped to the standard output / standard error. Output is piped in the run.sh script to the file stdout. This should therefore pick up all logging plus any System.out commands invoked by users. The file stdout is what is sent back to the IntelliJ plugin when polling a device for debug output.