Fix logger to follow "No % formatting operation is performed on msg when no args are supplied.".
This commit is contained in:
parent
10982b72d4
commit
e05cc1656c
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import sys
|
|||
|
||||
class Formatter(logging.Formatter):
|
||||
def format(self, record):
|
||||
message = record.msg % record.args
|
||||
message = record.msg % record.args if record.args else record.msg
|
||||
if record.levelno == logging.INFO:
|
||||
return message
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue