Skip to content

Commit 45f659e

Browse files
committed
Only stringify None values
1 parent 454ecf9 commit 45f659e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def _emit(self, record):
249249
event["logentry"] = {
250250
"message": to_string(record.msg),
251251
"params": (
252-
tuple(to_string(arg) for arg in record.args) if record.args else ()
252+
tuple(to_string(arg) if arg is None else arg for arg in record.args) if record.args else ()
253253
),
254254
}
255255

0 commit comments

Comments
 (0)