[Checkins] SVN: z3c.pt/trunk/z3c/pt/utils.py Added default system
encoding to error message.
Malthe Borch
mborch at gmail.com
Fri Feb 22 17:41:42 EST 2008
Log message for revision 84149:
Added default system encoding to error message.
Changed:
U z3c.pt/trunk/z3c/pt/utils.py
-=-
Modified: z3c.pt/trunk/z3c/pt/utils.py
===================================================================
--- z3c.pt/trunk/z3c/pt/utils.py 2008-02-22 22:37:52 UTC (rev 84148)
+++ z3c.pt/trunk/z3c/pt/utils.py 2008-02-22 22:41:41 UTC (rev 84149)
@@ -11,8 +11,9 @@
str(u'La Pe\xf1a')
unicode_required_flag = False
except UnicodeEncodeError:
- unicode_required_flag = True
- logging.warn("Default system encoding is set to '%s'; the template engine will perform better if an encoding that coerces gracefully to unicode is used ('utf-8' recommended).")
+ unicode_required_flag = True
+ log = logging.getLogger('z3c.pt')
+ log.info("Default system encoding is set to '%s'; the template engine will perform better if an encoding that coerces gracefully to unicode is used ('utf-8' recommended)." % sys.getdefaultencoding())
def handler(key=None):
def decorate(f):
More information about the Checkins
mailing list