Log environment on startup

Print out OS version, Java version and JavaFX version on startup
This commit is contained in:
0xboobface 2018-11-13 16:11:11 +01:00
parent 0cedd7e8e6
commit c2ad49fa3a
1 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,7 @@ public class CamrecApplication extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
logEnvironment();
sites.add(new BongaCams());
sites.add(new Cam4());
sites.add(new Camsoda());
@ -85,6 +86,12 @@ public class CamrecApplication extends Application {
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 {
LOG.debug("Creating GUI");
primaryStage.setTitle("CTB Recorder " + getVersion());