@@ -63,7 +63,6 @@ class SentryAppenderTest {
6363 debug : Boolean? = null,
6464 contextTags : List <String >? = null,
6565 enableLogs : Boolean = true,
66- enableGlobalLogs : Boolean = true,
6766 ): ExtendedLogger {
6867 if (transportFactory != null ) {
6968 this .transportFactory = transportFactory
@@ -106,7 +105,6 @@ class SentryAppenderTest {
106105
107106 appender.start(
108107 appender.getOptionsConfiguration { options ->
109- options.logs.isEnabled = enableGlobalLogs
110108 options.logs.loggerBatchProcessorFactory =
111109 ILoggerBatchProcessorFactory { options, client ->
112110 LoggerBatchProcessor (options, client, ImmediateExecutorService ())
@@ -264,7 +262,7 @@ class SentryAppenderTest {
264262
265263 @Test
266264 fun `does not capture logs when local logs are disabled` () {
267- val logger = fixture.getSut(enableLogs = false , enableGlobalLogs = true )
265+ val logger = fixture.getSut(enableLogs = false )
268266
269267 logger.info(" this should not be captured as a log" )
270268 Sentry .flush(10 )
@@ -273,8 +271,8 @@ class SentryAppenderTest {
273271 }
274272
275273 @Test
276- fun `captures logs when local and aggregate logs are enabled` () {
277- val logger = fixture.getSut(enableLogs = true , enableGlobalLogs = true )
274+ fun `captures logs when local logs are enabled` () {
275+ val logger = fixture.getSut(enableLogs = true )
278276
279277 logger.info(" this should be captured as a log" )
280278 Sentry .flush(10 )
@@ -294,7 +292,6 @@ class SentryAppenderTest {
294292 minimumBreadcrumbLevel = Level .INFO ,
295293 minimumEventLevel = Level .ERROR ,
296294 enableLogs = false ,
297- enableGlobalLogs = true ,
298295 )
299296
300297 logger.info(" this should be a breadcrumb" )
@@ -397,7 +394,6 @@ class SentryAppenderTest {
397394 fun `plugin attribute enables logs with explicit opt in` () {
398395 initForTest {
399396 it.dsn = " http://key@localhost/proj"
400- it.logs.isEnabled = true
401397 }
402398 val event = mock<LogEvent >()
403399 whenever(event.level).thenReturn(Level .INFO )
0 commit comments