[New-bugs-announce] [issue7874] logging.basicConfig should raise warning/exception on second call
Tobias
report at bugs.python.org
Sun Feb 7 15:51:43 CET 2010
New submission from Tobias <tac at gmx.li>:
logging.basicConfig should raise warning/eception on second call. Why?
logging.basicConfig(filename="/tmp/works.log")
logging.basicConfig(filename="/tmp/worksnot.log")
what do you think does happen? Right - logging goes to "/tmp/worksnot.log". But does not behave that way. The secound call does nothing. Simply bad coding style, an if without an else.
kind regards
Tobias
----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 99003
nosy: tocomo
severity: normal
status: open
title: logging.basicConfig should raise warning/exception on second call
type: behavior
versions: Python 2.5, Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7874>
_______________________________________
More information about the New-bugs-announce
mailing list