We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2b848 commit 73fc8a9Copy full SHA for 73fc8a9
sentry_sdk/integrations/logging.py
@@ -5,6 +5,7 @@
5
import sentry_sdk
6
from sentry_sdk.client import BaseClient
7
from sentry_sdk.utils import (
8
+ safe_repr,
9
to_string,
10
event_from_exception,
11
current_stacktrace,
@@ -364,7 +365,7 @@ def _capture_log_from_record(client, record):
364
365
if isinstance(record.args, tuple):
366
for i, arg in enumerate(record.args):
367
attrs[f"sentry.message.parameters.{i}"] = (
- arg if isinstance(arg, str) else repr(arg)
368
+ arg if isinstance(arg, str) else safe_repr(arg)
369
)
370
if record.lineno:
371
attrs["code.line.number"] = record.lineno
0 commit comments