Skip to content

Commit

Permalink
docs(scanner): Improve logging for packages with incomplete scan results
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sschuberth committed Nov 9, 2023
1 parent 1534d39 commit bd4e1c7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scanner/src/main/kotlin/Scanner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()}" }
}
}

Expand Down

0 comments on commit bd4e1c7

Please sign in to comment.