Add default log4j config file for better performance

This commit is contained in:
huangyuhui
2017-07-03 08:46:35 +08:00
parent 72a1d4f186
commit 7fe3e28a2d
7 changed files with 99 additions and 35 deletions

View File

@@ -163,7 +163,11 @@ public abstract class GameLauncher {
}
}
HMCLog.log("Starting process");
HMCLog.log(str.toString());
String s = StrUtils.makeCommand(str);
s = s.replace(result.getAccessToken(), "<access token>");
s = s.replace(result.getSession(), "<session>");
s = s.replace(result.getUserId(), "<uuid>");
HMCLog.log(s);
ProcessBuilder builder = new ProcessBuilder(str);
if (options.getLaunchVersion() == null || service.baseDirectory() == null)
throw new Error("Fucking bug!");