log level is inherited from importing code
Bug #1023139 reported by
David Kranz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I was using the python library in this code and discovered that if an app imports keystone client and sets the log level to debug, it activates debugging in this library. It seems to me that a library should not do that. Is this by design?
To post a comment you must log in.
That's by design, at least as far as I think you're seeing it - if the logger is set to DEBUG, it'll print out request and response, but doesn't (i think) set httplib2.debuglevel to 1, which is what you get when you add the --debug flag through the CLI.
Could you detail more of what you're seeing?