From 075f6ad56528a667dca1f0bed704cf7e5381026f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 20 Sep 2023 05:03:26 +0200 Subject: [PATCH] fix: Log logs with levels over warning to error output stream --- revanced-lib/src/main/kotlin/app/revanced/lib/logging/Logger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revanced-lib/src/main/kotlin/app/revanced/lib/logging/Logger.kt b/revanced-lib/src/main/kotlin/app/revanced/lib/logging/Logger.kt index d67a2b1..face769 100644 --- a/revanced-lib/src/main/kotlin/app/revanced/lib/logging/Logger.kt +++ b/revanced-lib/src/main/kotlin/app/revanced/lib/logging/Logger.kt @@ -67,7 +67,7 @@ object Logger { if (loggerName?.startsWith("app.revanced") != true) return@handler log.toByteArray().let { - if (level.intValue() > Level.INFO.intValue()) + if (level.intValue() > Level.WARNING.intValue()) System.err.write(it) else System.out.write(it)