This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Messages unicode before hitting logging
Some of the log handlers in the python standard library are hitting issues with Messages since they check for basestring types only, and attempt to coerce anything else to string. This leads to Messages being coerced to bad encodings, resulting in unhandled exceptions. This change adds a check that looks for non-basestring objects and coerces them to unicode before they hit the problematic logging areas. bug 1225099 Change-Id: I0bff6b52205e3c88db38876b8c6de1bd820f460a Co-authored-by: Luis A. Garcia <luis@linux.vnet.ibm.com>
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters