log server version on startup (#380)

This commit is contained in:
Erimel
2022-12-13 11:12:07 -05:00
committed by GitHub
parent 47c76c9c9e
commit 2ee9d5080f

View File

@@ -50,6 +50,8 @@ public class Main {
e1.printStackTrace();
}
LogManager.info("Running version " + VERSION);
if (!SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_17)) {
LogManager.severe("SlimeVR start-up error! A minimum of Java 17 is required.");
JOptionPane
@@ -93,7 +95,7 @@ public class Main {
e.printStackTrace();
}
System.exit(1); // Exit in case error happened on init and window
// not appeared, but some thread
// not appeared, but some thread
// started
} finally {
try {