Skip to content
Permalink
Browse files

Add and use a property for the scan storage name

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch-si.com>
  • Loading branch information...
sschuberth committed Aug 13, 2019
1 parent b779e6d commit 68b65a7da4f37de28016c633a37eef61dd2f9bea
@@ -153,7 +153,7 @@ object ScannerCommand : CommandWithHelp() {

val scanner = scannerFactory.create(config)

println("Using scanner '${scanner.scannerName}' with '${ScanResultsStorage.storage.javaClass.simpleName}'.")
println("Using scanner '${scanner.scannerName}' with storage '${ScanResultsStorage.storage.name}'.")

val localFileStorageLogFunction: ((String) -> Unit)? = when {
// If the local file storage is in use, log about it already at info level.
@@ -77,6 +77,11 @@ abstract class ScanResultsStorage {
}
}

/**
* The name to refer to this storage implementation.
*/
val name: String = javaClass.simpleName

/**
* The access statistics for the scan result storage.
*/

0 comments on commit 68b65a7

Please sign in to comment.
You can’t perform that action at this time.