mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01: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
1 changed files with 0 additions and 14 deletions
|
@ -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…
Reference in a new issue