LogHandler fixture changes the logger log level instead of the handler

Bug #1244256 reported by Attila Fazekas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Fixtures
Incomplete
Undecided
Unassigned

Bug Description

When using the fixtures.LogHandler fixture even with nuke_handlers=Flase option, it has a negative side effect to all other handlers.

The LogHandler fixture should not touches the loggers log level, because it cusses issues to all other logging Handler which want to log on a different logLevel.

The Handler's verbosity can be changed on the handler http://docs.python.org/2/library/logging.html#logging.Handler.setLevel,
without causing issues to the other handlers.

Revision history for this message
Robert Collins (lifeless) wrote :

Hmm, I believe we need to change the logger as well, because if its filtering output the dev has asked for that would be a problem. We can restore it though afterwards (I thought we did already)

Changed in python-fixtures:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.