Fixed bug in handling of args in LogRecord.__init__.
This commit is contained in:
parent
c19ccc9f11
commit
dccd4321a7
|
@ -204,7 +204,7 @@ class LogRecord:
|
||||||
# 'Value is %d' instead of 'Value is 0'.
|
# 'Value is %d' instead of 'Value is 0'.
|
||||||
# For the use case of passing a dictionary, this should not be a
|
# For the use case of passing a dictionary, this should not be a
|
||||||
# problem.
|
# problem.
|
||||||
if args and (len(args) == 1) and args[0]:
|
if args and (len(args) == 1) and args[0] and (type(args[0]) == types.DictType):
|
||||||
args = args[0]
|
args = args[0]
|
||||||
self.args = args
|
self.args = args
|
||||||
self.levelname = getLevelName(level)
|
self.levelname = getLevelName(level)
|
||||||
|
|
Loading…
Reference in New Issue