in intellij-plugin-verifier/verifier-repository/src/main/java/com/jetbrains/pluginverifier/repository/repositories/tracing/LoggingAndTracingPluginRepository.kt [125:153]
override fun searchCompatibleUpdates(
xmlIds: List<StringPluginId>,
build: String,
channel: String,
module: String
): List<UpdateBean> {
val channelMsg = if (channel.isNotBlank()) ", channel '$channel'" else ""
val specMsg = if (xmlIds.isEmpty() && module.isNotBlank()) {
"module '$module' for $build$channelMsg"
} else {
val moduleMsg = if (module.isNotBlank()) ", module '$module'" else ""
val pluginIdMsg = when (xmlIds.size) {
0 -> "no plugin IDs"
1 -> "'${xmlIds.first()}'"
else -> xmlIds.joinToString(prefix = "'", postfix = "'")
}
"$pluginIdMsg for $build$channelMsg$moduleMsg"
}
LOG.debug("Searching for compatible plugin updates of {}", specMsg)
return delegate.searchCompatibleUpdates(
xmlIds,
build,
channel,
module
).also {
LOG.debug("Found {} compatible plugin updates of {}", it.size, specMsg)
}
}