diff --git a/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java b/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java index 053e334f..2ebcd25c 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java +++ b/Launcher/src/main/java/ru/gravit/launcher/ClientLauncherWrapper.java @@ -27,10 +27,11 @@ public static void main(String[] arguments) throws IOException, InterruptedExcep List args = new LinkedList<>(); args.add(javaBin.toString()); String pathLauncher = IOHelper.getCodeSource(ClientLauncher.class).toString(); + args.add(JVMHelper.jvmProperty(LogHelper.DEBUG_PROPERTY, Boolean.toString(LogHelper.isDebugEnabled()))); Collections.addAll(args, "-javaagent:".concat(pathLauncher)); Collections.addAll(args, LauncherEngine.class.getName()); - args.add(JVMHelper.jvmProperty(LogHelper.DEBUG_PROPERTY, Boolean.toString(LogHelper.isDebugEnabled()))); EnvHelper.addEnv(processBuilder); + LogHelper.debug("Commandline: " + args); processBuilder.command(args); Process process = processBuilder.start(); if(!LogHelper.isDebugEnabled()) {