Skip to content

Commit

Permalink
PB-931 Don't add exc_text manually to logging output in JSON formatter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
schtibe committed Jan 16, 2025
1 parent afb9ae6 commit 2963c62
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions logging_utilities/formatters/json_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,6 @@ def format(self, record):
if self.add_always_extra:
self._add_extra_to_message(extra, message)

if record.exc_text:
message['exc_text'] = record.exc_text

if record.stack_info:
message['stack_info'] = self.formatStack(record.stack_info)

Expand Down

0 comments on commit 2963c62

Please sign in to comment.