Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions sentry_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import uuid
import random
import socket
import logging
from collections.abc import Mapping
from datetime import datetime, timezone
from importlib import import_module
Expand Down Expand Up @@ -900,17 +899,8 @@ def _capture_experimental_log(self, current_scope, log):
# If debug is enabled, log the log to the console
debug = self.options.get("debug", False)
if debug:
severity_text_to_logging_level = {
"trace": logging.DEBUG,
"debug": logging.DEBUG,
"info": logging.INFO,
"warn": logging.WARNING,
"error": logging.ERROR,
"fatal": logging.CRITICAL,
}
logger.log(
severity_text_to_logging_level.get(log["severity_text"], logging.DEBUG),
f'[Sentry Logs] {log["body"]}',
logger.debug(
f'[Sentry Logs] [{log.get("severity_text")}] {log.get("body")}'
)

envelope = Envelope(headers=headers)
Expand Down
Loading