From c590bf559c4d2d2667c2af0c0da23d4706fcd4b7 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 11 Dec 2022 20:08:52 +0100 Subject: [PATCH] feat: trace logs when compatibility annotation is missing (#166) --- src/main/kotlin/app/revanced/utils/patcher/Patcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt index 2e3dcbd..baef00c 100644 --- a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt @@ -31,7 +31,7 @@ fun Patcher.addPatchesFiltered(allPatches: List>>) { return@patchLoop } - if (compatiblePackages == null) logger.warn("$prefix: Missing compatibility annotation. Continuing.") + if (compatiblePackages == null) logger.trace("$prefix: Missing compatibility annotation. Continuing.") else { if (!compatiblePackages.any { it.name == packageName }) { logger.trace("$prefix: Incompatible with $packageName. This patch is only compatible with ${