Fixed log warning detail.
Cases when % was in the string but not for C style.
This commit is contained in:
parent
13c0216537
commit
7a7fc0a87d
|
|
@ -37,7 +37,7 @@ class MyLogger(logging.Logger):
|
|||
|
||||
def warning(self, msg, *args, **kwargs):
|
||||
MyLogger.warn_tcnt += 1
|
||||
if isinstance(msg, str):
|
||||
if isinstance(msg, str) and len(args):
|
||||
buf = StringIO()
|
||||
buf.write(msg % args)
|
||||
buf = buf.getvalue()
|
||||
|
|
|
|||
Loading…
Reference in New Issue