Skip to content

Commit 0f86319

Browse files
test: Drop logs.isEnabled from tests synced from main
9.x.x removed the Logs enable flag (#5939), so Sentry.logger() captures without it. Three tests brought in from main still set it and fail to compile on 9.x.x.
1 parent b1c4bad commit 0f86319

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

‎sentry-opentelemetry/sentry-opentelemetry-otlp/src/test/kotlin/OtlpEndToEndTest.kt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class OtlpEndToEndTest {
3333
fun `an event inside an OpenTelemetry span is linked to it`() {
3434
initForTest {
3535
it.dsn = server.dsn
36-
it.logs.isEnabled = true
3736
it.addEventProcessor(OpenTelemetryOtlpEventProcessor())
3837
}
3938

‎sentry-test-support/src/test/kotlin/io/sentry/test/EnvelopeMatchersTest.kt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class EnvelopeMatchersTest {
1515
initForTest {
1616
it.dsn = server.dsn
1717
it.tracesSampleRate = 1.0
18-
it.logs.isEnabled = true
1918
}
2019
}
2120

‎sentry/src/test/java/io/sentry/ShutdownHookEndToEndTest.kt‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ class ShutdownHookEndToEndTest {
4545
object ExitWithoutFlushApp {
4646
@JvmStatic
4747
fun main(args: Array<String>) {
48-
Sentry.init {
49-
it.dsn = args[0]
50-
it.logs.isEnabled = true
51-
}
48+
Sentry.init { it.dsn = args[0] }
5249
Sentry.captureMessage("Reported before exit")
5350
Sentry.logger().info("Logged before exit")
5451
Sentry.metrics().count("exitMetric")

0 commit comments

Comments
 (0)