Skip to content

Commit 9cccf25

Browse files
test(logs): Adapt main's preformatted-log tests to 9.x.x log options
9.x.x removed options.logs.isEnabled and the logback test fixture takes logsEnabled instead of enableLogs.
1 parent 3b97e48 commit 9cccf25

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ class SentryAppenderTest {
899899

900900
@Test
901901
fun `does not format an already formatted log message again`() {
902-
fixture = Fixture(minimumLevel = Level.ERROR, enableLogs = true)
902+
fixture = Fixture(minimumLevel = Level.ERROR, logsEnabled = true)
903903
fixture.logger.error("q={}", "PO%2010B")
904904

905905
Sentry.flush(1000)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2801,7 +2801,7 @@ class ScopesTest {
28012801

28022802
@Test
28032803
fun `already formatted log is not formatted again`() {
2804-
val (sut, mockClient) = getEnabledScopes { it.logs.isEnabled = true }
2804+
val (sut, mockClient) = getEnabledScopes()
28052805
val params =
28062806
SentryLogParameters.create(
28072807
SentryAttributes.of(SentryAttribute.stringAttribute("sentry.message.template", "q={}")),

0 commit comments

Comments
 (0)