Roundup Robot added the comment:
New changeset d3b420807a86 by Vinay Sajip in branch '3.4':
Issue #23207: Improved kwarg validation.
https://hg.python.org/cpython/rev/d3b420807a86
New changeset 7ff0d7b50b36 by Vinay Sajip in branch 'default':
Issue #23207: merged fix from 3.4.
Jeremy Goss added the comment:
The argument validation in basicConfig has introduced another problem.
I cannot pass in an optional filename/filemode argument pair.
Previously, I passed in an optional logfile argument from ArgumentParser (which
could be None). Now, I get a ValueError because
Roundup Robot added the comment:
New changeset 2bc3e839a3a3 by Vinay Sajip in branch '3.4':
Issue #23207: logging.basicConfig() now does additional validation of its
arguments.
https://hg.python.org/cpython/rev/2bc3e839a3a3
New changeset 06ba5e776a6e by Vinay Sajip in branch 'default':
Closes
New submission from Florian Bruhin:
logging.basicConfig uses **kwargs and does not validate them.
This caused me to shoot myself in the foot multiple times by passing logLevel
instead of level accidentally, and then trying to figure out why my messages
don't get logged.
--
messages: