[KLIB Resolver] Prettier KLIB resolver messages

- Make the messages that are reported by KLIB resolver prettier
- For those messages that affect the resolve process add
  prefix "KLIB resolver: "
- Don't log warning on duplicated libraries on the classpath. This
  does not make any sense.

^KT-63573
This commit is contained in:
Dmitriy Dolovov
2023-12-07 16:52:13 +01:00
committed by Space Team
parent 3ab35cd417
commit 1c285de55e
7 changed files with 36 additions and 34 deletions
@@ -75,7 +75,7 @@ internal class KonanLibraryProperResolver(
val candidatePath = candidate.libraryFile.absolutePath
if (!candidate.targetList.contains(resolverTarget.visibleName)) {
logger.warning("skipping $candidatePath. The target doesn't match. Expected '$resolverTarget', found ${candidate.targetList}")
logger.warning("KLIB resolver: Skipping '$candidatePath'. The target doesn't match. Expected '$resolverTarget', found ${candidate.targetList}.")
return false
}