gettextutils is expecting to receive unicode strings
rather than basestrings. A basestring can cause an
unhandled exception in the logging code. To help avoid
such issues we should remove str() from LOG.* messages and
exceptions. We have verified that the %s formatting code
properly handle getting strings to unicode where necessary.
Reviewed: https:/ /review. openstack. org/90577 /git.openstack. org/cgit/ openstack/ oslo.messaging/ commit/ ?id=23edc1b4ce8 af2a2a4c3eb3c9c 095354f3983d8b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 23edc1b4ce8af2a 2a4c3eb3c9c0953 54f3983d8b
Author: ChangBo Guo(gcb) <email address hidden>
Date: Sun Apr 27 10:21:21 2014 +0800
Remove str() from LOG.* and exceptions
gettextutils is expecting to receive unicode strings
rather than basestrings. A basestring can cause an
unhandled exception in the logging code. To help avoid
such issues we should remove str() from LOG.* messages and
exceptions. We have verified that the %s formatting code
properly handle getting strings to unicode where necessary.
Copied from https:/ /review. openstack. org/#/c/ 77722
Change-Id: I082af5c9ae8bf9 859382c2c387b10 b48358e10b3
Related-Bug: #1286306