Skip to content

Commit

Permalink
don't ignore the width parameter in RichTracebackFormatter (#587)
Browse files Browse the repository at this point in the history
* don't ignore the width parameter in RichTracebackFormatter

* format

* add changelog entry

* Update CHANGELOG.md

Co-authored-by: Hynek Schlawack <[email protected]>

---------

Co-authored-by: Hynek Schlawack <[email protected]>
  • Loading branch information
wilfried-huss and hynek authored Jan 4, 2024
1 parent 813bc14 commit ac37281
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ You can find our backwards-compatibility policy [here](https://github.com/hynek/
- 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.

- Don't ignore the `width` argument of `RichTracebackFormatter`.
[#587](https://github.com/hynek/structlog/issues/587)


## [23.3.0](https://github.com/hynek/structlog/compare/23.2.0...23.3.0) - 2023-12-29

Expand Down
4 changes: 3 additions & 1 deletion src/structlog/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ def __call__(self, sio: TextIO, exc_info: ExcInfo) -> None:

sio.write("\n")

Console(file=sio, color_system=self.color_system).print(
Console(
file=sio, color_system=self.color_system, width=self.width
).print(
Traceback.from_exception(
*exc_info,
show_locals=self.show_locals,
Expand Down

0 comments on commit ac37281

Please sign in to comment.