Skip to content

Commit

Permalink
Update jsonformatter.py
Browse files Browse the repository at this point in the history
Fixing the invalid style formatting (when the style is not "%"). After this fix, it simply utilize the polymorphic record getMessage which handle relevant style.
  • Loading branch information
d3fga8c authored Aug 14, 2022
1 parent a5561e5 commit a0fa993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonformatter/jsonformatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def setRecordMessage(self, record):
record.message = str(record.msg)

if record.args:
record.message = str(record.message) % record.args
record.message = record.getMessage()

if record.exc_info:
# Cache the traceback text to avoid converting it multiple times
Expand Down

0 comments on commit a0fa993

Please sign in to comment.