Apply the debugging level before starting discovery to prevent info messages from showing up during discovery

This commit is contained in:
Cameron Gutman
2014-09-16 18:52:34 -07:00
parent 9fff8e9bd0
commit 8a74bdbe10

View File

@@ -373,13 +373,16 @@ public class Limelight implements NvConnectionListener {
Limelight limelight;
if (host == null || action.equals("discover")) {
limelight = new Limelight();
limelight.discover(!action.equals("discover"));
} else
limelight = new Limelight(host);
//Set debugging level
limelight.setLevel(debug);
if (limelight.host == null) {
limelight.discover(!action.equals("discover"));
}
if (action.equals("stream") || action.equals("fake")) {
StreamConfiguration streamConfig = new StreamConfiguration(app, width, height, refresh, bitrate, sops);