diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/LauncherUpdateController.java b/Launcher/src/main/java/ru/gravit/launcher/client/LauncherUpdateController.java index b3f20052..c85be081 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/LauncherUpdateController.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/LauncherUpdateController.java @@ -76,7 +76,7 @@ public void postDiff(UpdateRequest request, UpdateRequestEvent e, HashedDir.Diff { //Еще раз проверим корректность хеша //Возможно эта проверка избыточна - if(file.isSame(ret, true)) + //if(file.isSame(ret, true)) { Path source = request.getDir().resolve(path); LogHelper.debug("Copy file %s to %s", ret.toAbsolutePath().toString(), source.toAbsolutePath().toString()); @@ -101,12 +101,12 @@ public Path tryFind(NewLauncherSettings.HashedStoreEntry en, HashedFile file) th HashedFile tfile = (HashedFile) entry; if(tfile.isSame(file)) { - LogHelper.debug("[DIR:%s] Found file %s in %s", en.name, name, path); + LogHelper.dev("[DIR:%s] Found file %s in %s", en.name, name, path); Path tdir = Paths.get(en.fullPath).resolve(path); try { if(tfile.isSame(tdir, true)) { - LogHelper.debug("[DIR:%s] Confirmed file %s in %s", en.name, name, path); + LogHelper.dev("[DIR:%s] Confirmed file %s in %s", en.name, name, path); ret.set(tdir); return HashedDir.WalkAction.STOP; } diff --git a/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java b/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java index 3d75e87c..22c1649a 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java +++ b/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java @@ -113,7 +113,10 @@ public static void debug(String format, Object... args) { @LauncherAPI public static void dev(String format, Object... args) { - dev(String.format(format, args)); + if(isDevEnabled()) + { + dev(String.format(format, args)); + } } @LauncherAPI