Skip to content

Commit aaef8fa

Browse files
committed
Suppress JSyn's java.util.logging INFO messages (fixes #12)
1 parent c9f4d6f commit aaef8fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/processing/sound/Engine.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package processing.sound;
22

3+
import java.util.logging.Level;
4+
import java.util.logging.Logger;
5+
36
import com.jsyn.JSyn;
47
import com.jsyn.Synthesizer;
58
import com.jsyn.devices.AudioDeviceFactory;
@@ -46,6 +49,11 @@ private Engine(PApplet theParent) {
4649
return;
4750
}
4851

52+
// suppress JSyn's INFO log messages to stop them from showing
53+
// up as redtext in the Processing console
54+
Logger logger = Logger.getLogger(com.jsyn.engine.SynthesisEngine.class.getName());
55+
logger.setLevel(Level.WARNING);
56+
4957
// create and start the synthesizer, and set this object as the singleton.
5058
this.synth = JSyn.createSynthesizer(Engine.getAudioManager());
5159

0 commit comments

Comments
 (0)