File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
sample/benchmark/src/main/java/com/datadog/benchmark/sample/ui Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ internal val ALL_LOG_LEVELS = listOf(
34
34
Log .DEBUG
35
35
)
36
36
37
- internal fun Int.stringRepresentation (): String {
37
+ internal fun Int.logStringRepresentation (): String {
38
38
return when (this ) {
39
39
Log .ERROR -> " ERROR"
40
40
Log .VERBOSE -> " VERBOSE"
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import com.datadog.benchmark.sample.ui.ALL_LOG_LEVELS
26
26
import com.datadog.benchmark.sample.ui.LogPayloadSize
27
27
import com.datadog.benchmark.sample.ui.common.ExpandedItemView
28
28
import com.datadog.benchmark.sample.ui.common.ValueChooserItemView
29
- import com.datadog.benchmark.sample.ui.stringRepresentation
29
+ import com.datadog.benchmark.sample.ui.logStringRepresentation
30
30
31
31
@Suppress(" LongMethod" )
32
32
@Composable
@@ -46,8 +46,8 @@ internal fun LogsScreen(
46
46
ExpandedItemView (
47
47
titleText = " Log level" ,
48
48
items = ALL_LOG_LEVELS ,
49
- headerText = state.config.logLevel.stringRepresentation (),
50
- itemTextFactory = { it.stringRepresentation () },
49
+ headerText = state.config.logLevel.logStringRepresentation (),
50
+ itemTextFactory = { it.logStringRepresentation () },
51
51
onClick = { dispatch(LogsScreenAction .SelectLogLevel (it)) }
52
52
)
53
53
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import com.datadog.benchmark.sample.ui.ALL_LOG_LEVELS
19
19
import com.datadog.benchmark.sample.ui.LogPayloadSize
20
20
import com.datadog.benchmark.sample.ui.common.ExpandedItemView
21
21
import com.datadog.benchmark.sample.ui.common.ValueChooserItemView
22
- import com.datadog.benchmark.sample.ui.stringRepresentation
22
+ import com.datadog.benchmark.sample.ui.logStringRepresentation
23
23
24
24
@Composable
25
25
internal fun LogsHeavyTrafficSettingsScreen (
@@ -42,8 +42,8 @@ internal fun LogsHeavyTrafficSettingsScreen(
42
42
ExpandedItemView (
43
43
titleText = " Log level" ,
44
44
items = ALL_LOG_LEVELS ,
45
- headerText = config.logLevel.stringRepresentation (),
46
- itemTextFactory = { it.stringRepresentation () },
45
+ headerText = config.logLevel.logStringRepresentation (),
46
+ itemTextFactory = { it.logStringRepresentation () },
47
47
onClick = { dispatch(LogsHeavyTrafficScreenAction .SelectLogLevel (it)) }
48
48
)
49
49
You can’t perform that action at this time.
0 commit comments