From 5155bf292a0704efd5b4a2afa1aaaa27a8f862c9 Mon Sep 17 00:00:00 2001 From: Gravit Date: Wed, 24 Oct 2018 20:40:51 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B=20=D0=B2=D1=80?= =?UTF-8?q?=D0=B0=D0=BF=D0=BF=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/ClientLauncherWrapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) {