Start logging earlier

This commit is contained in:
yushijinhun 2018-10-20 17:44:43 +08:00
parent c9466cf8ef
commit 270844bbb1
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
2 changed files with 4 additions and 2 deletions

View File

@ -74,8 +74,6 @@ public final class Launcher extends Application {
Thread.setDefaultUncaughtExceptionHandler(CRASH_REPORTER);
try {
Logging.start(Metadata.HMCL_DIRECTORY.resolve("logs"));
LOG.info("*** " + Metadata.TITLE + " ***");
LOG.info("Operating System: " + System.getProperty("os.name") + ' ' + OperatingSystem.SYSTEM_VERSION);
LOG.info("Java Version: " + System.getProperty("java.version") + ", " + System.getProperty("java.vendor"));

View File

@ -18,6 +18,8 @@
package org.jackhuang.hmcl;
import org.jackhuang.hmcl.upgrade.UpdateHandler;
import org.jackhuang.hmcl.util.Logging;
import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
@ -42,6 +44,8 @@ public final class Main {
checkDirectoryPath();
checkDSTRootCAX3();
Logging.start(Metadata.HMCL_DIRECTORY.resolve("logs"));
if (UpdateHandler.processArguments(args)) {
return;
}