Message254881
# coding=utf-8
import logging
logger = logging.getLogger(u'测试')
logger.error(u'测试')
# these code will get an unexpected error
# because getLogger encode the unicode to utf-8 while _log don't
# see line 474 in logging/__init__.py
# my suggestion is to keep the encoding in logging same with python2 with unicode |
|
Date |
User |
Action |
Args |
2015-11-19 05:36:22 | zephor | set | recipients:
+ zephor |
2015-11-19 05:36:22 | zephor | set | messageid: <1447911382.32.0.466398267316.issue25664@psf.upfronthosting.co.za> |
2015-11-19 05:36:22 | zephor | link | issue25664 messages |
2015-11-19 05:36:21 | zephor | create | |
|