Skip to content

Commit 39e377b

Browse files
committed
feat: do not warn on incompatible packages
1 parent fce4042 commit 39e377b

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/app/revanced/utils/patcher

1 file changed

+2
-2
lines changed

src/main/kotlin/app/revanced/utils/patcher/Patcher.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fun Patcher.addPatchesFiltered(allPatches: List<Class<out Patch<Context>>>) {
4141
if (compatiblePackages == null) logger.warn("$prefix: Missing compatibility annotation. Continuing.")
4242
else {
4343
if (!compatiblePackages.any { it.name == packageName }) {
44-
logger.warn("$prefix: incompatible with $packageName. This patch is only compatible with ${
44+
logger.trace("$prefix: Incompatible with $packageName. This patch is only compatible with ${
4545
compatiblePackages.joinToString(
4646
", "
4747
) { it.name }
@@ -53,7 +53,7 @@ fun Patcher.addPatchesFiltered(allPatches: List<Class<out Patch<Context>>>) {
5353
val compatibleWith = compatiblePackages.joinToString(";") { _package ->
5454
"${_package.name}: ${_package.versions.joinToString(", ")}"
5555
}
56-
logger.warn("$prefix: incompatible with version $packageVersion. This patch is only compatible with version $compatibleWith")
56+
logger.warn("$prefix: Incompatible with version $packageVersion. This patch is only compatible with version $compatibleWith")
5757
return@patchLoop
5858
}
5959
}

0 commit comments

Comments
 (0)