mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: disable correct loggers
This commit is contained in:
parent
02d6ff15fe
commit
c2d89c622e
1 changed files with 9 additions and 1 deletions
|
@ -54,13 +54,21 @@ class Patcher(private val options: PatcherOptions) {
|
|||
}
|
||||
|
||||
init {
|
||||
LogManager.getLogManager().getLogger("brut.*").useParentHandlers = false
|
||||
// Disable unwanted logging.
|
||||
LogManager.getLogManager().let {
|
||||
listOf("app.revanced.apktool-lib", "app.revanced.brut.*").forEach { loggerName ->
|
||||
it.getLogger(loggerName)?.useParentHandlers = false
|
||||
}
|
||||
}
|
||||
|
||||
logger.info("Reading dex files")
|
||||
|
||||
// read dex files
|
||||
val dexFile = MultiDexIO.readDexFile(true, options.inputFile, NAMER, null, null)
|
||||
|
||||
// get the opcodes
|
||||
opcodes = dexFile.opcodes
|
||||
|
||||
// finally create patcher context
|
||||
context = PatcherContext(dexFile.classes.toMutableList(), File(options.resourceCacheDirectory))
|
||||
|
||||
|
|
Loading…
Reference in a new issue