mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] IJPL-174111 Stop spamming user logs with warnings on preloading of services
GitOrigin-RevId: b1b18d1b14076586a41bc286c6448914f76c4761
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4bd6d76d5c
commit
429dbbb241
+7
-1
@@ -16,6 +16,7 @@ import com.intellij.diagnostic.PluginException
|
||||
import com.intellij.diagnostic.StartUpMeasurer
|
||||
import com.intellij.ide.plugins.*
|
||||
import com.intellij.ide.plugins.cl.PluginAwareClassLoader
|
||||
import com.intellij.idea.AppMode.isDevServer
|
||||
import com.intellij.idea.AppMode.isLightEdit
|
||||
import com.intellij.openapi.Disposable
|
||||
import com.intellij.openapi.application.*
|
||||
@@ -1064,7 +1065,12 @@ abstract class ComponentManagerImpl(
|
||||
LOG.error(PluginException(message, plugin.pluginId))
|
||||
}
|
||||
else if (!isKnown || !impl.startsWith("com.intellij.")) {
|
||||
LOG.warn(message)
|
||||
if (ApplicationManager.getApplication().isUnitTestMode
|
||||
|| PluginManagerCore.isRunningFromSources()
|
||||
|| isDevServer()) {
|
||||
// logged only during development, let's not spam users
|
||||
LOG.warn(message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user