Logging Handler to Raise Exceptions for use during unit tests

Registered by Joe Gordon on 2014-02-06

By default the logging module just prints exception raised during logging to stderr. But when running unit tests we want actually raise these exceptions so we can test for them.

http://docs.python.org/2/howto/logging.html#exceptions-raised-during-logging

Blueprint information

Status:
Not started
Approver:
Doug Hellmann
Priority:
Medium
Drafter:
Joe Gordon
Direction:
Approved
Assignee:
Joe Gordon
Definition:
Approved
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Joe and I discussed implementing this as a feature of the test base class, rather than in the logging code directly, so production systems don't ever throw errors from logging. - dhellmann

Gerrit topic: https://review.openstack.org/#q,topic:bp/logging-handleerror-raise-exception,n,z

Addressed by: https://review.openstack.org/71680
    Fixture to reraise exceptions raised during logging

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.