Error when using formater JSONFormatter in Python3.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.log |
Fix Released
|
Medium
|
Stephen Finucane |
Bug Description
In Python3.5 was added new argument for _create_
When we are using JSONFormatter, we get traceback.
Traceback (most recent call last):
File "/usr/lib/
sys.
File "/usr/lib64/
logging.
File "/usr/lib64/
_load_
File "/usr/lib64/
disable_
File "/usr/lib64/
formatters = _create_
File "/usr/lib64/
f = c(fmt=fs, datefmt=dfs, style=stl)
TypeError: __init__() got an unexpected keyword argument 'style'
For current working, __init__ in JSONFormatter class must takes style argument.
Changed in oslo.log: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Suff (dmitry-a-grachev) |
Changed in oslo.log: | |
assignee: | Suff (dmitry-a-grachev) → Stephen Finucane (stephenfinucane) |
I think that patch looks correct. Are you set up so you can submit it via gerrit instead of as an attachment here?