Log environment on startup
Print out OS version, Java version and JavaFX version on startup
This commit is contained in:
parent
0cedd7e8e6
commit
c2ad49fa3a
|
@ -61,6 +61,7 @@ public class CamrecApplication extends Application {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws Exception {
|
public void start(Stage primaryStage) throws Exception {
|
||||||
|
logEnvironment();
|
||||||
sites.add(new BongaCams());
|
sites.add(new BongaCams());
|
||||||
sites.add(new Cam4());
|
sites.add(new Cam4());
|
||||||
sites.add(new Camsoda());
|
sites.add(new Camsoda());
|
||||||
|
@ -85,6 +86,12 @@ public class CamrecApplication extends Application {
|
||||||
checkForUpdates();
|
checkForUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void logEnvironment() {
|
||||||
|
LOG.debug("OS:\t{} {}", System.getProperty("os.name"), System.getProperty("os.version"));
|
||||||
|
LOG.debug("Java:\t{} {} {}", System.getProperty("java.vendor"), System.getProperty("java.vm.name"), System.getProperty("java.version"));
|
||||||
|
LOG.debug("JavaFX:\t{} ({})", System.getProperty("javafx.version"), System.getProperty("javafx.runtime.version"));
|
||||||
|
}
|
||||||
|
|
||||||
private void createGui(Stage primaryStage) throws IOException {
|
private void createGui(Stage primaryStage) throws IOException {
|
||||||
LOG.debug("Creating GUI");
|
LOG.debug("Creating GUI");
|
||||||
primaryStage.setTitle("CTB Recorder " + getVersion());
|
primaryStage.setTitle("CTB Recorder " + getVersion());
|
||||||
|
|
Loading…
Reference in New Issue