Skip to content

Commit da51c82

Browse files
committed
fixes
1 parent ae82dd5 commit da51c82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def _record_lost_event(
660660
record_lost_func=_record_lost_event,
661661
)
662662

663-
if self.options.get("enable_metrics", False):
663+
if self.options.get("enable_metrics", True) is False:
664664
logger.warning(
665665
"The enable_metrics option has no effect and will be removed in the next major."
666666
)

tests/integrations/logging/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def test_sentry_logs_debug(sentry_init, capture_envelopes):
411411
"""
412412
The python logger module should not create 'debug' sentry logs if the flag is on by default
413413
"""
414-
sentry_init(enable_logs=True)
414+
sentry_init(integrations=[LoggingIntegration(capture_sentry_logs=True)])
415415
envelopes = capture_envelopes()
416416

417417
python_logger = logging.Logger("test-logger")

0 commit comments

Comments
 (0)