From d956c4a3a67672ecdcb1da40d1706c73ae448a36 Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Wed, 14 Aug 2024 22:00:16 -0400 Subject: [PATCH] Refactor: Change log level from WARN to INFO Change the log level of duplicate entry and missing class mirror messages from WARN to INFO. This adjustment provides more detailed information during processing without raising unnecessary concern. Signed-off-by: androidacy-user --- .../org/lsposed/lsparanoid/processor/StandaloneClassWriter.kt | 2 +- .../kotlin/org/lsposed/lsparanoid/processor/commons/JarUtils.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/StandaloneClassWriter.kt b/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/StandaloneClassWriter.kt index c6804d6..38a8c14 100644 --- a/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/StandaloneClassWriter.kt +++ b/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/StandaloneClassWriter.kt @@ -78,7 +78,7 @@ class StandaloneClassWriter : ClassWriter { return fileRegistry.findPathForType(type)?.let { _ -> getClassMirror(type) } ?: run { - logger.warn("[getClassMirrorOrObject]: {} not found", type) + logger.info("[getClassMirrorOrObject]: {} not found", type) getClassMirror(OBJECT_TYPE) } } diff --git a/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/commons/JarUtils.kt b/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/commons/JarUtils.kt index e7212de..aab550f 100644 --- a/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/commons/JarUtils.kt +++ b/processor/src/main/kotlin/org/lsposed/lsparanoid/processor/commons/JarUtils.kt @@ -31,7 +31,7 @@ internal fun JarOutputStream.createFile(name: String, data: ByteArray) { } catch (e: ZipException) { // it's normal to have duplicated files in META-INF or module-info. do not throw exceptions then. if (name.startsWith("META-INF/") || name.contains("module-info.class") || name.contains("module-info")) { - logger.warn("Skip duplicate entry {}", name) + logger.info("Skip duplicate entry {}", name) } else { throw e }