Explicitly logging exceptions does not actually log them

When I call logger.exception("uhoh", exc_info=ValueError("invalid")) I get the following log output with exc_info missing:

{..., "level": "ERROR", "message": "uhoh", "exc_text": "NoneType: None"}

I would expect something like this

{..., "level": "ERROR", "message": "uhoh", "exc_text": "ValueError: invalid"}

Happy to tackle this, just assign it to me

Edited by Thomas Scholtes