LOG.exception fails on Python 2.x when the exception content needs decoding
Bug #1393870 reported by
Alessandro Pilotti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloudbase-init |
Fix Released
|
Medium
|
Alessandro Pilotti | ||
oslo-incubator |
Won't Fix
|
Medium
|
Alessandro Pilotti |
Bug Description
The following example, generates an exception in openstack.
http://
from openstack.common import log as logging
with open("unicode-
text = f.read()
LOG = logging.
LOG.
The calling code should be responsible for decoding the content before assigning it as the exception message, but nevertheless, the logging module should handle this gracefully and not raise an exception.
Related bug: https:/
affects: | pbr → oslo-incubator |
Changed in cloudbase-init: | |
status: | Triaged → In Progress |
Changed in cloudbase-init: | |
status: | Fix Committed → Fix Released |
Changed in oslo-incubator: | |
importance: | Undecided → Medium |
Changed in oslo-incubator: | |
status: | In Progress → Won't Fix |
To post a comment you must log in.
Patch: https:/ /review. openstack. org/#/c/ 135368/