fix(deps): update dependency structlog to v24
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| structlog (changelog) | dependencies | major |
^23.1.0 -> ^24.0.0
|
Release Notes
hynek/structlog (structlog)
v24.4.0
Changed
No code changes since 24.3.0
v24.3.0
Added
-
Restore feature parity between
structlog.traceback.ExceptionDictTransformerand 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 ofSecretStrimplementations). - Add
locals_max_lengthconfig option - Add
locals_hide_sunderconfig option - Add
locals_hide_dunderconfig option - Add
suppressconfig option
Changed
-
structlog.testing.capture_logs()now maps theexceptionlog level toerror(as it's elsewhere). #628
v24.2.0
Added
-
It is now possible to disable log level-padding in
structlog.dev.LogLevelColumnFormatterandstructlog.dev.ConsoleRenderer. #599 -
The
structlog.processors.CallsiteParameterAddercan now be pickled. #603 -
structlog.processors.CallsiteParameterAddernow also works withstructlog.stdlib.BoundLogger's non-standard async methods (ainfo(), and so forth) #618
Changed
-
structlog.processors.LogfmtRenderernow escapes newlines. #592 -
structlog.processors.LogfmtRenderernow escapes backslashes and double quotes. #594 -
structlog.processors.CallsiteParameterAdderhas been optimized to be about 2x faster. #606
Fixed
-
structlog.stdlib.render_to_log_kwargsnow correctly passes stacklevel as a kwarg to stdlib logging. #619
v24.1.0
Fixed
-
The lazy logger proxy returned by
structlog.get_logger()now returns its initial values when asked for context. When asked for context before binding for the first time, it returned an empty dictionary in 23.3.0. -
The displayed level name when using
structlog.stdlib.BoundLogger.exception()is"error"instead of"exception". Fixes regression in 23.3.0. #584 -
Don't ignore the
widthargument ofRichTracebackFormatter. #587
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.