]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix (and test and document) logging on py2 with non-ascii bytestrings.
authorBen Darnell <ben@bendarnell.com>
Wed, 27 Jun 2012 07:02:58 +0000 (00:02 -0700)
committerBen Darnell <ben@bendarnell.com>
Wed, 27 Jun 2012 07:19:24 +0000 (00:19 -0700)
commit83b38823ee48a6e5f3cafe604cb75ffd39bf45cf
tree39d7a617f7d321edf8f938c85af59187a134d330
parentc469936e42988eafbd596b3423943388c362804c
Fix (and test and document) logging on py2 with non-ascii bytestrings.

The immediate motivation was an error in request logging when the
request contains non-ascii characters, but a more general fix is
desirable since there are probably more cases where we log utf8 byte
strings, and in general a logging system that blows up on data that
has a perfectly useful representation is not ideal.

Closes #544.
tornado/options.py
tornado/test/options_test.py