Skip to content

Commit

Permalink
fix: Remove log management
Browse files Browse the repository at this point in the history
Changing the logging behaviour caused unintended behaviour outside of the library.
  • Loading branch information
oSumAtrIX committed Sep 19, 2023
1 parent b7f6aa9 commit d51bc32
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt
Expand Up @@ -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

/**
Expand All @@ -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)
}

Expand Down

0 comments on commit d51bc32

Please sign in to comment.