Skip to content

Commit 8bc254d

Browse files
committed
improve
1 parent 6af6433 commit 8bc254d

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

sentry-log4j2/src/test/kotlin/io/sentry/log4j2/SentryAppenderTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,7 @@ class SentryAppenderTest {
594594

595595
@Test
596596
fun `sets properties from ThreadContext as attributes on logs`() {
597-
val logger =
598-
fixture.getSut(minimumLevel = Level.INFO, contextTags = listOf("someTag"))
597+
val logger = fixture.getSut(minimumLevel = Level.INFO, contextTags = listOf("someTag"))
599598
ScopesAdapter.getInstance().options.logs.isEnabled = true
600599

601600
ThreadContext.put("someTag", "someValue")

sentry-logback/src/test/kotlin/io/sentry/logback/SentryAppenderTest.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -824,12 +824,7 @@ class SentryAppenderTest {
824824

825825
@Test
826826
fun `sets properties from MDC as attributes on logs`() {
827-
fixture =
828-
Fixture(
829-
minimumLevel = Level.INFO,
830-
enableLogs = true,
831-
contextTags = listOf("someTag"),
832-
)
827+
fixture = Fixture(minimumLevel = Level.INFO, enableLogs = true, contextTags = listOf("someTag"))
833828
MDC.put("someTag", "someValue")
834829
MDC.put("otherTag", "otherValue")
835830
fixture.logger.info("testing context tags in logs")

0 commit comments

Comments
 (0)