From 4a00dbd491aaabdb220d3eab7d7a29cf266cb26c Mon Sep 17 00:00:00 2001 From: "Daniil.Bubnov" Date: Thu, 15 Aug 2024 17:49:43 +0200 Subject: [PATCH] IJPL-39320 Switch all IntelliJ recorders to UTF-8 in field values Disable character escaping for FUS recorder GitOrigin-RevId: e69dc5bc3445c6d7a57151beda29be2a88ae40db --- .../internal/statistic/eventLog/StatisticsEventLogger.kt | 2 +- .../eventLog/fus/FeatureUsageEventLoggerProvider.kt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/statistics/src/com/intellij/internal/statistic/eventLog/StatisticsEventLogger.kt b/platform/statistics/src/com/intellij/internal/statistic/eventLog/StatisticsEventLogger.kt index 545aced4bb0e..fc5e14d68c71 100644 --- a/platform/statistics/src/com/intellij/internal/statistic/eventLog/StatisticsEventLogger.kt +++ b/platform/statistics/src/com/intellij/internal/statistic/eventLog/StatisticsEventLogger.kt @@ -171,7 +171,7 @@ abstract class StatisticsEventLoggerProvider(val recorderId: String, * */ abstract class StatisticsEventLoggerProviderExt(recorderId: String, version: Int, sendFrequencyMs: Long, maxFileSizeInBytes: Int, sendLogsOnIdeClose: Boolean = false) : - StatisticsEventLoggerProvider(recorderId, version, sendFrequencyMs, maxFileSizeInBytes, sendLogsOnIdeClose) { + StatisticsEventLoggerProvider(recorderId, version, sendFrequencyMs, maxFileSizeInBytes, sendLogsOnIdeClose, false) { override fun isLoggingAlwaysActive(): Boolean = StatisticsEventLogProviderUtil.forceLoggingAlwaysEnabled() } diff --git a/platform/statistics/src/com/intellij/internal/statistic/eventLog/fus/FeatureUsageEventLoggerProvider.kt b/platform/statistics/src/com/intellij/internal/statistic/eventLog/fus/FeatureUsageEventLoggerProvider.kt index 53bd0700ad22..3137b8bc8d1b 100644 --- a/platform/statistics/src/com/intellij/internal/statistic/eventLog/fus/FeatureUsageEventLoggerProvider.kt +++ b/platform/statistics/src/com/intellij/internal/statistic/eventLog/fus/FeatureUsageEventLoggerProvider.kt @@ -12,7 +12,11 @@ import com.intellij.util.PlatformUtils import java.util.concurrent.TimeUnit internal class FeatureUsageEventLoggerProvider : StatisticsEventLoggerProviderExt( - "FUS", 75, sendFrequencyMs = TimeUnit.MINUTES.toMillis(15), DEFAULT_MAX_FILE_SIZE_BYTES, sendLogsOnIdeClose = true) { + recorderId = "FUS", + version = 76, + sendFrequencyMs = TimeUnit.MINUTES.toMillis(15), + maxFileSizeInBytes = DEFAULT_MAX_FILE_SIZE_BYTES, + sendLogsOnIdeClose = true) { override fun isRecordEnabled(): Boolean { return !ApplicationManager.getApplication().isUnitTestMode &&