Skip to content

Commit 8162d64

Browse files
RUM-9508: pr fixes
1 parent 2fd7156 commit 8162d64

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

sample/benchmark/src/main/java/com/datadog/benchmark/sample/ui/LogPayloadUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ internal val ALL_LOG_LEVELS = listOf(
3434
Log.DEBUG
3535
)
3636

37-
internal fun Int.stringRepresentation(): String {
37+
internal fun Int.logStringRepresentation(): String {
3838
return when (this) {
3939
Log.ERROR -> "ERROR"
4040
Log.VERBOSE -> "VERBOSE"

sample/benchmark/src/main/java/com/datadog/benchmark/sample/ui/logscustom/LogsScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import com.datadog.benchmark.sample.ui.ALL_LOG_LEVELS
2626
import com.datadog.benchmark.sample.ui.LogPayloadSize
2727
import com.datadog.benchmark.sample.ui.common.ExpandedItemView
2828
import com.datadog.benchmark.sample.ui.common.ValueChooserItemView
29-
import com.datadog.benchmark.sample.ui.stringRepresentation
29+
import com.datadog.benchmark.sample.ui.logStringRepresentation
3030

3131
@Suppress("LongMethod")
3232
@Composable
@@ -46,8 +46,8 @@ internal fun LogsScreen(
4646
ExpandedItemView(
4747
titleText = "Log level",
4848
items = ALL_LOG_LEVELS,
49-
headerText = state.config.logLevel.stringRepresentation(),
50-
itemTextFactory = { it.stringRepresentation() },
49+
headerText = state.config.logLevel.logStringRepresentation(),
50+
itemTextFactory = { it.logStringRepresentation() },
5151
onClick = { dispatch(LogsScreenAction.SelectLogLevel(it)) }
5252
)
5353

sample/benchmark/src/main/java/com/datadog/benchmark/sample/ui/logsheavytraffic/LogsHeavyTrafficSettingsScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import com.datadog.benchmark.sample.ui.ALL_LOG_LEVELS
1919
import com.datadog.benchmark.sample.ui.LogPayloadSize
2020
import com.datadog.benchmark.sample.ui.common.ExpandedItemView
2121
import com.datadog.benchmark.sample.ui.common.ValueChooserItemView
22-
import com.datadog.benchmark.sample.ui.stringRepresentation
22+
import com.datadog.benchmark.sample.ui.logStringRepresentation
2323

2424
@Composable
2525
internal fun LogsHeavyTrafficSettingsScreen(
@@ -42,8 +42,8 @@ internal fun LogsHeavyTrafficSettingsScreen(
4242
ExpandedItemView(
4343
titleText = "Log level",
4444
items = ALL_LOG_LEVELS,
45-
headerText = config.logLevel.stringRepresentation(),
46-
itemTextFactory = { it.stringRepresentation() },
45+
headerText = config.logLevel.logStringRepresentation(),
46+
itemTextFactory = { it.logStringRepresentation() },
4747
onClick = { dispatch(LogsHeavyTrafficScreenAction.SelectLogLevel(it)) }
4848
)
4949

0 commit comments

Comments
 (0)