Skip to content

Commit

Permalink
Refactor: Change log level from WARN to INFO
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
androidacy-user committed Aug 15, 2024
1 parent dbdca60 commit d956c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d956c4a

Please sign in to comment.