mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 14:22:00 +00:00
Use correct debug level
This commit is contained in:
@@ -33,6 +33,7 @@ public class Limelight implements NvConnectionListener {
|
|||||||
private String host;
|
private String host;
|
||||||
private NvConnection conn;
|
private NvConnection conn;
|
||||||
private boolean connectionTerminating;
|
private boolean connectionTerminating;
|
||||||
|
private Logger logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new instance based on the given host
|
* Constructs a new instance based on the given host
|
||||||
@@ -292,12 +293,13 @@ public class Limelight implements NvConnectionListener {
|
|||||||
System.exit(5);
|
System.exit(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set debugging level
|
|
||||||
Logger.getLogger(LimeLog.class.getName()).setLevel(debug);
|
|
||||||
|
|
||||||
StreamConfiguration streamConfig = new StreamConfiguration("Steam", width, height, refresh, bitrate);
|
StreamConfiguration streamConfig = new StreamConfiguration("Steam", width, height, refresh, bitrate);
|
||||||
|
|
||||||
Limelight limelight = new Limelight(host);
|
Limelight limelight = new Limelight(host);
|
||||||
|
|
||||||
|
//Set debugging level
|
||||||
|
limelight.setLevel(debug);
|
||||||
|
|
||||||
if (!pair)
|
if (!pair)
|
||||||
if (fake)
|
if (fake)
|
||||||
limelight.startUpFake(streamConfig, video);
|
limelight.startUpFake(streamConfig, video);
|
||||||
@@ -307,6 +309,12 @@ public class Limelight implements NvConnectionListener {
|
|||||||
limelight.pair();
|
limelight.pair();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setLevel(Level level) {
|
||||||
|
if (logger==null)
|
||||||
|
logger = Logger.getLogger(LimeLog.class.getName());
|
||||||
|
|
||||||
|
logger.setLevel(level);
|
||||||
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
connectionTerminating = true;
|
connectionTerminating = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user