From bd4e1c78b413dd8aecb8277ce1859de4360d9f21 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Thu, 9 Nov 2023 15:56:03 +0100 Subject: [PATCH] docs(scanner): Improve logging for packages with incomplete scan results A user does not know that the reference package has its path removed, so the original message sounded as if the package is scanned as a substitute for others. Clarify that by rewording the log message. Signed-off-by: Sebastian Schuberth --- scanner/src/main/kotlin/Scanner.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scanner/src/main/kotlin/Scanner.kt b/scanner/src/main/kotlin/Scanner.kt index 1be86509c0e16..24a4506bb91fd 100644 --- a/scanner/src/main/kotlin/Scanner.kt +++ b/scanner/src/main/kotlin/Scanner.kt @@ -346,10 +346,9 @@ class Scanner( if (packagesWithIncompleteScanResult.size > 1) { logger.info { - val packageIds = packagesWithIncompleteScanResult.drop(1) - .joinToString("\n") { "\t${it.id.toCoordinates()}" } - "Scanning package '${referencePackage.id.toCoordinates()}' as reference for these packages " + - "with the same provenance:\n$packageIds" + "Consolidating the following packages with the same provenance to a single repository scan " + + "associated with the first package ('${referencePackage.id.toCoordinates()}'): " + + packagesWithIncompleteScanResult.joinToString("\n") { "\t${it.id.toCoordinates()}" } } }