Skip to content

Commit 2963c62

Browse files
committed
PB-931 Don't add exc_text manually to logging output in JSON formatter
Remove the addition of exc_text to the message directly. Instead adding it to the record, so that it can be formatted through the django logging facility
1 parent afb9ae6 commit 2963c62

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

logging_utilities/formatters/json_formatter.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,6 @@ def format(self, record):
354354
if self.add_always_extra:
355355
self._add_extra_to_message(extra, message)
356356

357-
if record.exc_text:
358-
message['exc_text'] = record.exc_text
359-
360357
if record.stack_info:
361358
message['stack_info'] = self.formatStack(record.stack_info)
362359

0 commit comments

Comments
 (0)