TypeError when use logging.LogRecord
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.privsep |
In Progress
|
Undecided
|
uchenily |
Bug Description
I found EypeError in oslo.privsep:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/local/
self.
File "/usr/local/
if LOG.isEnabledFo
File "/usr/lib/
if self.logger.
TypeError: '>=' not supported between instances of 'int' and 'NoneType'
environment info:
python: 3.6.7
oslo.privsep: 1.29.2
this simple bug causes nova-compute to not work properly. [1]is a related bug.
if it's ok, I will fix it later.
Changed in oslo.privsep: | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
https:/ /github. com/openstack/ oslo.privsep/ blob/1. 29.2/oslo_ privsep/ daemon. py#L210
I think here we can use: r(record. levelno) :
```
if record.levelno and LOG.isEnabledFo
```
because record.levelno maybe NoneType