From 15b8613d3cb2e0fe9b19d3bb9304f53db8cba372 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 29 Sep 2023 19:40:02 +0200 Subject: [PATCH] feat: Only log relevant records --- .../main/kotlin/app/revanced/manager/flutter/MainActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt b/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt index 3cf0fafb..bd33a8b2 100644 --- a/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt +++ b/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt @@ -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()