From d51bc32e37a865194c3825471085b3ccf8c78421 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 19 Sep 2023 05:08:29 +0200 Subject: [PATCH] fix: Remove log management Changing the logging behaviour caused unintended behaviour outside of the library. --- .../main/kotlin/app/revanced/patcher/Patcher.kt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt b/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt index 3128b20..30abe4b 100644 --- a/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt +++ b/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt @@ -9,8 +9,6 @@ import kotlinx.coroutines.flow.flow import java.io.Closeable import java.io.File import java.util.function.Supplier -import java.util.logging.Level -import java.util.logging.LogManager import java.util.logging.Logger /** @@ -30,18 +28,6 @@ class Patcher( val context = PatcherContext(options) init { - LogManager.getLogManager().let { manager -> - // Disable root logger. - manager.getLogger("").level = Level.OFF - - // Enable ReVanced logging only. - manager.loggerNames - .toList() - .filter { it.startsWith("app.revanced") } - .map { manager.getLogger(it) } - .forEach { it.level = Level.INFO } - } - context.resourceContext.decodeResources(ResourceContext.ResourceDecodingMode.MANIFEST_ONLY) }