Updated openstack/openstack
Project: openstack/oslo.log 92f87422ad1f013b96ffdca51e6dad1737e9905f Avoid converting to unicode if not needed In python3, str is already represents unicode data. The current code called oslo.utils safe_encode irrespective of incoming message encoding and encoded it to 'utf-8', however that resolves to a byte string. Since the syslog module expects a message of type unicode[1]. We don't need to encode if python3 is being used, since the string representation is sequence of unicode codepoints by default. [1] https://hg.python.org/cpython/file/tip/Modules/syslogmodule.c#l162 Change-Id: Id40854d6b762b2d639afd7168ddb3a1e728d13d7
This commit is contained in:
parent
2d2f5cc394
commit
feac697fb3
2
oslo.log
2
oslo.log
|
@ -1 +1 @@
|
|||
Subproject commit d85a877f294fca7cd01f096ef177fd222e8bdab1
|
||||
Subproject commit 92f87422ad1f013b96ffdca51e6dad1737e9905f
|
Loading…
Reference in New Issue