[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator
Vinay Sajip
report at bugs.python.org
Wed Aug 10 18:09:02 CEST 2011
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
BTW I just tested on PyPy. The following program:
import logging.config
import sys
d = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'stream': 'ext://sys.stdout',
}
},
'root': {
'level': 'DEBUG',
}
}
logging.config.dictConfig(d)
logging.debug('%s', sys.version)
prints:
vinay at eta-natty:~/projects/scratch$ python dctest.py
DEBUG:root:2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2]
vinay at eta-natty:~/projects/scratch$ ~/pypy-c-jit-43780-b590cf6de419-linux/bin/pypy dctest.py
DEBUG:root:2.7.1 (b590cf6de419, Apr 30 2011, 02:00:38)
[PyPy 1.5.0-alpha0 with GCC 4.4.3]
----------
status: pending -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12718>
_______________________________________
More information about the Python-bugs-list
mailing list