Message174253
On 10/30/2012 05:29 PM, R. David Murray wrote:
> R. David Murray added the comment:
>
> Do none of those submodules import logging?
>
> It is unlikely that this is a Python bug. Somewhere _fmt is getting set to an integer. The way to prove this one way or another is to start deleting things until you find the code that is triggering the issue.
>
After tortuous digging I found a subsubmodule that does this:
import logging
logging_options = [logging.DEBUG,
logging.INFO,
logging.WARNING,
logging.ERROR,
logging.CRITICAL]
logging_level = logging_options[2]
logging.basicConfig(format=logging_level)
Commenting out that last line fixed the problem. I've now cleared out
all the code shown here. Thanks for the tip.
Tom
> ----------
> nosy: +r.david.murray
> resolution: -> invalid
> stage: -> committed/rejected
> status: open -> pending
>
> _______________________________________
> Python tracker<report@bugs.python.org>
> <http://bugs.python.org/issue16368>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2012-10-31 00:44:59 | kuiper | set | recipients:
+ kuiper, r.david.murray |
2012-10-31 00:44:59 | kuiper | link | issue16368 messages |
2012-10-31 00:44:59 | kuiper | create | |
|