Skip to content

Commit c26eec9

Browse files
committed
Coerce None values into strings in logentry params.
1 parent 8672dc1 commit c26eec9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry_sdk/integrations/logging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ def _emit(self, record):
248248
else:
249249
event["logentry"] = {
250250
"message": to_string(record.msg),
251-
"params": record.args,
251+
"params": (
252+
tuple(to_string(arg) for arg in record.args) if record.args else ()
253+
),
252254
}
253255

254256
event["extra"] = self._extra_from_record(record)

0 commit comments

Comments
 (0)