Skip to content

Commit

Permalink
feat: trace logs when compatibility annotation is missing (ReVanced#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX authored Dec 11, 2022
1 parent b3cf32e commit c590bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/utils/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun Patcher.addPatchesFiltered(allPatches: List<Class<out Patch<Context>>>) {
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 ${
Expand Down

0 comments on commit c590bf5

Please sign in to comment.