Skip to content

Commit 98f48cf

Browse files
committed
.
1 parent 4415469 commit 98f48cf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/integrations/logging/test_logging.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ def test_ignore_logger_wildcard(sentry_init, capture_events):
296296

297297
def test_logging_dictionary_interpolation(sentry_init, capture_events):
298298
"""Here we test an entire dictionary being interpolated into the log message."""
299-
sentry_init(integrations=[LoggingIntegration()], default_integrations=False)
299+
sentry_init(
300+
integrations=[LoggingIntegration(event_level=logging.ERROR)],
301+
default_integrations=False,
302+
)
300303
events = capture_events()
301304

302305
logger.error("this is a log with a dictionary %s", {"foo": "bar"})
@@ -312,7 +315,10 @@ def test_logging_dictionary_interpolation(sentry_init, capture_events):
312315

313316
def test_logging_dictionary_args(sentry_init, capture_events):
314317
"""Here we test items from a dictionary being interpolated into the log message."""
315-
sentry_init(integrations=[LoggingIntegration()], default_integrations=False)
318+
sentry_init(
319+
integrations=[LoggingIntegration(event_level=logging.ERROR)],
320+
default_integrations=False,
321+
)
316322
events = capture_events()
317323

318324
logger.error(

0 commit comments

Comments
 (0)