remove spam from the test console

GitOrigin-RevId: 6b4a26e67ff25da119016632d38d6de1b510b316
This commit is contained in:
Alexey Kudravtsev
2023-03-13 17:41:52 +00:00
committed by intellij-monorepo-bot
parent 734367c4b5
commit 31d830657e
2 changed files with 5 additions and 3 deletions
@@ -62,7 +62,7 @@ internal class ClassPathXmlPathResolver(private val classLoader: ClassLoader, va
if (isRunningFromSources && path.startsWith("intellij.") && dataLoader.emptyDescriptorIfCannotResolve) {
Logger.getInstance(ClassPathXmlPathResolver::class.java)
.warn("Cannot resolve $path (dataLoader=$dataLoader, classLoader=$classLoader). ")
.trace("Cannot resolve $path (dataLoader=$dataLoader, classLoader=$classLoader). ")
val descriptor = RawPluginDescriptor()
descriptor.`package` = "unresolved.${path.removeSuffix(".xml")}"
return descriptor
@@ -454,7 +454,9 @@ public final class PluginManagerCore {
).collect(Collectors.joining("\n "));
if (isUnitTestMode || !GraphicsEnvironment.isHeadless()) {
getLogger().warn(logMessage);
if (!isUnitTestMode) {
getLogger().warn(logMessage);
}
return Stream.concat(
globalErrors.stream(),
loadingErrors.stream()
@@ -585,7 +587,7 @@ public final class PluginManagerCore {
private static void disableIncompatiblePlugins(@NotNull Collection<IdeaPluginDescriptorImpl> descriptors,
@NotNull Map<PluginId, IdeaPluginDescriptorImpl> idMap,
@NotNull Map<PluginId, PluginLoadingError> errors) {
@NotNull Map<? super PluginId, ? super PluginLoadingError> errors) {
String selectedIds = System.getProperty("idea.load.plugins.id");
String selectedCategory = System.getProperty("idea.load.plugins.category");