Fix bug in logger. Resolve #3149
This commit is contained in:
parent
2f14b978b6
commit
819fb8272a
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def _log(msg, logfunc, prefix="", **kwargs):
|
||||||
try:
|
try:
|
||||||
msg = str(msg)
|
msg = str(msg)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
msg = str(e)
|
msg = str(err)
|
||||||
if kwargs:
|
if kwargs:
|
||||||
logfunc(msg, **kwargs)
|
logfunc(msg, **kwargs)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue