No handler found if logging occurs before logging is ready
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Low
|
Joe D'Andrea | ||
oslo.log |
Fix Released
|
Undecided
|
Joe D'Andrea |
Bug Description
It's not unusual to see this pattern (e.g., for heat-api):
logging.
cfg.CONF(
version=
Let's say oslo_config discovers a deprecated option:
if self.deprecated
self.
pretty_group = group_name or 'DEFAULT'
LOG.
In this case it logs a warning ... except logging isn't ready yet (the default handlers aren't in place at this point), resulting in:
No handlers could be found for logger "oslo_config.cfg"
After observing other kilo/liberty installations/
Changed in oslo.log: | |
assignee: | nobody → Joe D'Andrea (joedandrea) |
description: | updated |
description: | updated |
description: | updated |
Changed in oslo.log: | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Changed in oslo.log: | |
assignee: | Joe D'Andrea (joedandrea) → Davanum Srinivas (DIMS) (dims-v) |
Changed in oslo.log: | |
milestone: | none → 2.0.0 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
assignee: | nobody → Joe D'Andrea (joedandrea) |
Changed in heat: | |
status: | New → Fix Released |
status: | Fix Released → Fix Committed |
tags: | added: liberty-backport-potential |
Changed in heat: | |
milestone: | none → mitaka-1 |
importance: | Undecided → Low |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Patch submitted for review: /review. openstack. org/#/c/ 245303
https:/