diff --git a/Launcher/build.gradle b/Launcher/build.gradle index 9c7b81ba..a2253345 100644 --- a/Launcher/build.gradle +++ b/Launcher/build.gradle @@ -47,9 +47,7 @@ pack project(':LauncherAPI') pack project(':LauncherClient') pack project(':LauncherStart') - bundle(group: 'com.github.oshi', name: 'oshi-core', version: rootProject['verOshiCore']) { - exclude group: 'org.slf4j' - } + bundle(group: 'com.github.oshi', name: 'oshi-core', version: rootProject['verOshiCore']) } tasks.register('genRuntimeJS', Zip) { diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java index 9ba2af43..92e9b182 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java @@ -23,7 +23,7 @@ public final class LogHelper { public static final String DEV_PROPERTY = "launcher.dev"; public static final String STACKTRACE_PROPERTY = "launcher.stacktrace"; public static final String NO_JANSI_PROPERTY = "launcher.noJAnsi"; - public static final String NO_SLF4J_PROPERTY = "launcher.noSlf4j"; + public static final String SLF4J_PROPERTY = "launcher.useSlf4j"; private static final Set> EXCEPTIONS_CALLBACKS = Collections.newSetFromMap(new ConcurrentHashMap<>(2)); private static final LogHelperAppender impl; @@ -31,7 +31,7 @@ public final class LogHelper { boolean useSlf4j = false; try { Class.forName("org.slf4j.Logger", false, LogHelper.class.getClassLoader()); - useSlf4j = !Boolean.getBoolean(NO_SLF4J_PROPERTY); + useSlf4j = Boolean.getBoolean(SLF4J_PROPERTY); } catch (ClassNotFoundException ignored) { } if (useSlf4j) {