Skip to content

Commit a0fa993

Browse files
authored
Update jsonformatter.py
Fixing the invalid style formatting (when the style is not "%"). After this fix, it simply utilize the polymorphic record getMessage which handle relevant style.
1 parent a5561e5 commit a0fa993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonformatter/jsonformatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def setRecordMessage(self, record):
321321
record.message = str(record.msg)
322322

323323
if record.args:
324-
record.message = str(record.message) % record.args
324+
record.message = record.getMessage()
325325

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

0 commit comments

Comments
 (0)