I'm not clear on why anything's getting decoded, though -- it looks like this is py2, so we're trying to interpolate bytes into bytes. What version of oslo.log is that? Following https://github.com/openstack/oslo.log/commit/991d8f0 (or its mitaka counterpart, https://github.com/openstack/oslo.log/commit/a2e7f65) I thought that should Just Work™? It won't be particularly pretty, but it shouldn't go raising UnicodeErrors...
Regardless, something like https://review.openstack.org/#/c/442342/ will be necessary, or py3 logging (which *would* have record.msg as unicode) will break like this.
Ugh, I never should have even tried with https:/ /github. com/openstack/ python- swiftclient/ commit/ f728027 -- API responses are so tiny, there's practically no benefit to gzipping, it just burns CPU :-/
I'm not clear on why anything's getting decoded, though -- it looks like this is py2, so we're trying to interpolate bytes into bytes. What version of oslo.log is that? Following https:/ /github. com/openstack/ oslo.log/ commit/ 991d8f0 (or its mitaka counterpart, https:/ /github. com/openstack/ oslo.log/ commit/ a2e7f65) I thought that should Just Work™? It won't be particularly pretty, but it shouldn't go raising UnicodeErrors...
Regardless, something like https:/ /review. openstack. org/#/c/ 442342/ will be necessary, or py3 logging (which *would* have record.msg as unicode) will break like this.