fix: Remove log management

Changing the logging behaviour caused unintended behaviour outside of the library.
This commit is contained in:
oSumAtrIX 2023-09-19 05:08:29 +02:00
parent b7f6aa94cc
commit d51bc32e37
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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)
}