IJPL-39320 Switch all IntelliJ recorders to UTF-8 in field values

Disable character escaping for FUS recorder

GitOrigin-RevId: e69dc5bc3445c6d7a57151beda29be2a88ae40db
This commit is contained in:
Daniil.Bubnov
2024-08-19 10:14:36 +00:00
committed by intellij-monorepo-bot
parent 771364b2e4
commit 4a00dbd491
2 changed files with 6 additions and 2 deletions
@@ -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()
}
@@ -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 &&