Add system info to logs

This commit is contained in:
Manfred Karrer 2016-04-23 01:58:52 +02:00
parent cf46a5d232
commit f700c427a6
3 changed files with 11 additions and 3 deletions

View File

@ -81,6 +81,4 @@ public class Version {
", getP2PNetworkId()=" + getP2PMessageVersion() +
'}');
}
}

View File

@ -140,6 +140,16 @@ public class Utilities {
}
}
public static void printSysInfo() {
log.info("os.name: " + System.getProperty("os.name"));
log.info("os.version: " + System.getProperty("os.version"));
log.info("os.arch: " + System.getProperty("os.arch"));
log.info("os.name: " + System.getProperty("os.name"));
log.info("sun.arch.data.model: " + getJVMArchitecture());
log.info("JRE: " + System.getProperty("java.runtime.version", "-") + " (" + System.getProperty("java.vendor", "-") + ")");
log.info("JVM: " + System.getProperty("java.vm.version", "-") + " (" + System.getProperty("java.vm.name", "-") + ")");
}
public static String getJVMArchitecture() {
return System.getProperty("sun.arch.data.model");
}

View File

@ -101,8 +101,8 @@ public class BitsquareApp extends Application {
String logPath = Paths.get(env.getProperty(BitsquareEnvironment.APP_DATA_DIR_KEY), "bitsquare").toString();
Log.setup(logPath, !IS_RELEASE_VERSION);
log.info("Log files under: " + logPath);
Version.printVersion();
Utilities.printSysInfo();
UserThread.setExecutor(Platform::runLater);
UserThread.setTimerClass(UITimer.class);