mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-03 14:14:26 +02:00
fix: Remove log management
Changing the logging behaviour caused unintended behaviour outside of the library.
This commit is contained in:
parent
b7f6aa94cc
commit
d51bc32e37
@ -9,8 +9,6 @@ import kotlinx.coroutines.flow.flow
|
|||||||
import java.io.Closeable
|
import java.io.Closeable
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.util.function.Supplier
|
import java.util.function.Supplier
|
||||||
import java.util.logging.Level
|
|
||||||
import java.util.logging.LogManager
|
|
||||||
import java.util.logging.Logger
|
import java.util.logging.Logger
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -30,18 +28,6 @@ class Patcher(
|
|||||||
val context = PatcherContext(options)
|
val context = PatcherContext(options)
|
||||||
|
|
||||||
init {
|
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)
|
context.resourceContext.decodeResources(ResourceContext.ResourceDecodingMode.MANIFEST_ONLY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user