From 39e377bc485e2892422e9712d30e6ff665856ac1 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 20 Nov 2022 00:34:00 +0100 Subject: [PATCH] feat: do not warn on incompatible packages --- src/main/kotlin/app/revanced/utils/patcher/Patcher.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt index e2c32fec..d26b2061 100644 --- a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt @@ -41,7 +41,7 @@ fun Patcher.addPatchesFiltered(allPatches: List>>) { if (compatiblePackages == null) logger.warn("$prefix: Missing compatibility annotation. Continuing.") else { if (!compatiblePackages.any { it.name == packageName }) { - logger.warn("$prefix: incompatible with $packageName. This patch is only compatible with ${ + logger.trace("$prefix: Incompatible with $packageName. This patch is only compatible with ${ compatiblePackages.joinToString( ", " ) { it.name } @@ -53,7 +53,7 @@ fun Patcher.addPatchesFiltered(allPatches: List>>) { val compatibleWith = compatiblePackages.joinToString(";") { _package -> "${_package.name}: ${_package.versions.joinToString(", ")}" } - logger.warn("$prefix: incompatible with version $packageVersion. This patch is only compatible with version $compatibleWith") + logger.warn("$prefix: Incompatible with version $packageVersion. This patch is only compatible with version $compatibleWith") return@patchLoop } }