mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-31 10:49:19 -04:00
Add system info to logs
This commit is contained in:
parent
cf46a5d232
commit
f700c427a6
3 changed files with 11 additions and 3 deletions
|
@ -81,6 +81,4 @@ public class Version {
|
|||
", getP2PNetworkId()=" + getP2PMessageVersion() +
|
||||
'}');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue