mirror of
https://github.com/revanced/revanced-manager-compose-old.git
synced 2025-05-04 16:34:25 +02:00
feat: only log when a patch fails
This commit is contained in:
parent
c179a9f012
commit
2959821a96
@ -149,13 +149,14 @@ class PatcherWorker(context: Context, parameters: WorkerParameters, private val
|
|||||||
Logging.log += "Merging integrations\n"
|
Logging.log += "Merging integrations\n"
|
||||||
patcher.addFiles(listOf(integrations)) {}
|
patcher.addFiles(listOf(integrations)) {}
|
||||||
|
|
||||||
|
Logging.log += "Applying ${patches.size} patch(es)"
|
||||||
patcher.executePatches().forEach { (patch, result) ->
|
patcher.executePatches().forEach { (patch, result) ->
|
||||||
Logging.log += "Applying $patch\n"
|
|
||||||
if (result.isSuccess) {
|
if (result.isFaliure) {
|
||||||
Logging.log += "$patch has been applied successfully\n"
|
Logging.log += "Failed to apply $patch \n" + result.exceptionOrNull()!!.message
|
||||||
return@forEach
|
return@forEach
|
||||||
}
|
}
|
||||||
Logging.log += "Failed to apply $patch \n" + result.exceptionOrNull()!!
|
|
||||||
}
|
}
|
||||||
Logging.log += "Saving file\n"
|
Logging.log += "Saving file\n"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user