New submission from kespindler:
In Python 3.3, 3.4beta2, and bleeding edge (88411:e7d922d8ee03), the following
occurs
import logging
logging.basicConfig(style={)
logging.error(hello)
%(levelname)s:%(name)s:%(message)s
Of course, I would expect
ERROR:root:hello
to be output instead.
kespindler added the comment:
I created a patch that fixes this behavior for both { and $ style formats.
Previously, default format strings were not being set correctly for those
styles. This patch ensures that the correct default_format string is used.
There is a minor weirdness issue that,
Changes by Ned Deily n...@acm.org:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20242
___
___
Python-bugs-list mailing list
Vinay Sajip added the comment:
Thanks for this. The patch looks good, and I expect to implement it shortly.
--
assignee: - vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20242
Vinay Sajip added the comment:
On further reflection, I will implement this slightly differently. The tests I
will commit as is, except for stripping newlines before the comparison (to
avoid worrying about differences in line separators across different
platforms). However, the correct fix
Roundup Robot added the comment:
New changeset e7fcf0d8008f by Vinay Sajip in branch '3.3':
Issue #20242: Fixed basicConfig() format strings for the alternative formatting
styles.
http://hg.python.org/cpython/rev/e7fcf0d8008f
New changeset c1605d24fb35 by Vinay Sajip in branch 'default':