Highlights
This is just a quick release so I can focus on my other projects. But do enjoy the improved traceback dict rendering and log level handling in testing!
Full changelog below!
Special Thanks
This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!
Above and Beyond
Variomedia AG (@variomedia), Tidelift (@tidelift), FilePreviews (@filepreviews), Klaviyo (@klaviyo), Daniel Fortunov (@asqui), and Kevin P. Fleming (@kpfleming).
Maintenance Sustainers
Adam Hill (@adamghill), Magnus Watn (@magnuswatn), David Cramer (@dcramer), Moving Content AG (@moving-content), ProteinQure (@ProteinQure), Jesse Snyder (@jessesnyder), Rivo Laks (@rivol), The Westervelt Company (@westerveltco), Philippe Galvan (@PhilippeGalvan), Birk Jernström (@birkjernstrom), Chris Withers (@cjw296), Christopher Dignam (@chdsbd), Stefan Hagen (@sthagen), Sławomir Ehlert (@slafs), Mostafa Khalil (@khadrawy), Filip Mularczyk (@mukiblejlok), Mike Fiedler (@miketheman), Thomas Klinger (@thmsklngr), Duncan Hill (@cricalix), and Colin Marquardt (@cmarqu).
Not to forget 7 more amazing humans who chose to be generous but anonymous!
Full Changelog
Added
-
Restore feature parity between
structlog.traceback.ExceptionDictTransformer
and Rich's traceback extractor:- When displaying locals, use Rich for formatting if it is available.
- When displaying locals, call
repr()
on strings, too (improves handling ofSecretStr
implementations). - Add
locals_max_length
config option - Add
locals_hide_sunder
config option - Add
locals_hide_dunder
config option - Add
suppress
config option
Changed
structlog.testing.capture_logs()
now maps theexception
log level toerror
(as it's elsewhere). #628