mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FUS: disable event log for tests
This commit is contained in:
+4
-1
@@ -2,6 +2,7 @@
|
||||
package com.intellij.internal.statistic.eventLog
|
||||
|
||||
import com.intellij.internal.statistic.utils.StatisticsUploadAssistant
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.util.registry.Registry
|
||||
|
||||
class FeatureUsageFileEventLoggerProvider : FeatureUsageEventLoggerProvider {
|
||||
@@ -10,6 +11,8 @@ class FeatureUsageFileEventLoggerProvider : FeatureUsageEventLoggerProvider {
|
||||
}
|
||||
|
||||
override fun isEnabled() : Boolean {
|
||||
return StatisticsUploadAssistant.isSendAllowed() && Registry.`is`("feature.usage.event.log.collect.and.upload")
|
||||
return StatisticsUploadAssistant.isSendAllowed() &&
|
||||
Registry.`is`("feature.usage.event.log.collect.and.upload") &&
|
||||
!ApplicationManager.getApplication().isUnitTestMode
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user