Logging fails with an exception when unicode conversion of the message
cannot be performed.
This includes also Exception objects, where the exception message has
an unknown encoding.
The calling code should be responsible for handling the unicode encoding, but
nevertheless, the logging module should handle this scenario and not raise
an exception.
Reviewed: https:/ /review. openstack. org/135370 /git.openstack. org/cgit/ stackforge/ cloudbase- init/commit/ ?id=5344904f27e 19668681bf4623d c88a68f7b9bfca
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5344904f27e1966 8681bf4623dc88a 68f7b9bfca
Author: Alessandro Pilotti <email address hidden>
Date: Tue Nov 18 19:25:16 2014 +0200
Fixes unicode logging decoding issue
Logging fails with an exception when unicode conversion of the message
cannot be performed.
This includes also Exception objects, where the exception message has
an unknown encoding.
The calling code should be responsible for handling the unicode encoding, but
nevertheless, the logging module should handle this scenario and not raise
an exception.
Closes-Bug: #1393870
Change-Id: Ied46e4a8715d11 a3cf59d651004e1 7f6fe4c760b