BoundLogger.exception sets exc_info=True.
(self)
| 328 | assert WARN == bl.get_effective_level() |
| 329 | |
| 330 | def test_exception_exc_info(self): |
| 331 | """ |
| 332 | BoundLogger.exception sets exc_info=True. |
| 333 | """ |
| 334 | bl = BoundLogger(ReturnLogger(), [], {}) |
| 335 | |
| 336 | assert ((), {"exc_info": True, "event": "event"}) == bl.exception( |
| 337 | "event" |
| 338 | ) |
| 339 | |
| 340 | def test_exception_exc_info_override(self): |
| 341 | """ |
nothing calls this directly
no test coverage detected