Skip to content

Commit fa1e35a

Browse files
committed
Use logging method instead of manual formatting to support non-format-string messages
1 parent 1877535 commit fa1e35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/toil/test/cwl/cwlTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2210,7 +2210,7 @@ def emit(self, record: logging.LogRecord) -> None:
22102210
# We get the job name from the class since we already started failing
22112211
# this test once due to it being renamed.
22122212
try:
2213-
formatted = record.msg % record.args
2213+
formatted = record.getMessage()
22142214
except TypeError as e:
22152215
# The log message has the wrong number of items for its fields.
22162216
# Complain in a way we could figure out.

0 commit comments

Comments
 (0)