Skip to content

Commit

Permalink
feat: Only log relevant records
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Sep 29, 2023
1 parent 8ce266b commit 15b8613
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,11 @@ class MainActivity : FlutterActivity() {
}

object : java.util.logging.Handler() {
override fun publish(record: LogRecord) =
override fun publish(record: LogRecord) {
if (record.loggerName?.startsWith("app.revanced") != true) return

updateProgress(-1.0, "", record.message)
}

override fun flush() = Unit
override fun close() = flush()
Expand Down

0 comments on commit 15b8613

Please sign in to comment.