mirror of
https://github.com/corda/corda.git
synced 2024-12-23 14:52:29 +00:00
Minor: better plugin name printing in the banner
This commit is contained in:
parent
dcf7a8022f
commit
6aa5f0a4b5
@ -115,7 +115,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
private fun printPluginsAndServices(node: Node) {
|
||||
node.configuration.extraAdvertisedServiceIds.let { if (it.isNotEmpty()) printBasicNodeInfo("Providing network services", it) }
|
||||
val plugins = node.pluginRegistries.map { it.javaClass.name }.filterNot { it.startsWith("net.corda.node.") || it.startsWith("net.corda.core.") }.map { it.replaceAfter('$', "") }
|
||||
val plugins = node.pluginRegistries.map { it.javaClass.name }.filterNot { it.startsWith("net.corda.node.") || it.startsWith("net.corda.core.") }.map { it.substringBefore('$') }
|
||||
if (plugins.isNotEmpty())
|
||||
printBasicNodeInfo("Loaded plugins", plugins.joinToString())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user