Split os name + arch and version in debug, fix log in UpdateChecker

This commit is contained in:
Vankka 2022-12-28 00:53:51 +02:00
parent 516f6410c9
commit e827ea603a
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
2 changed files with 2 additions and 3 deletions

View File

@ -135,8 +135,8 @@ public class DebugReport {
+ " (" + System.getProperty("java.vendor.url") + ")");
values.put("operatingSystem", System.getProperty("os.name")
+ " " + System.getProperty("os.version")
+ " (" + System.getProperty("os.arch") + ")");
values.put("operatingSystemVersion", System.getProperty("os.version"));
Runtime runtime = Runtime.getRuntime();
values.put("cores", runtime.availableProcessors());

View File

@ -134,8 +134,7 @@ public class UpdateChecker {
log(check, logUpToDate);
return true;
} else {
discordSRV.logger().error("Update check" + (isFirstPartyNotification ? "s" : "")
+ " failed: unknown version");
logger.error("Update check" + (isFirstPartyNotification ? "s" : "") + " failed: unknown version");
}
}