Skip to content

Commit ac37281

Browse files
wilfried-husshynek
andauthored
don't ignore the width parameter in RichTracebackFormatter (#587)
* 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]>
1 parent 813bc14 commit ac37281

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ You can find our backwards-compatibility policy [here](https://github.com/hynek/
2020
- The lazy logger proxy returned by `structlog.get_logger()` now returns its initial values when asked for context.
2121
When asked for context before binding for the first time, it returned an empty dictionary in 23.3.0.
2222

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

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

src/structlog/dev.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def __call__(self, sio: TextIO, exc_info: ExcInfo) -> None:
365365

366366
sio.write("\n")
367367

368-
Console(file=sio, color_system=self.color_system).print(
368+
Console(
369+
file=sio, color_system=self.color_system, width=self.width
370+
).print(
369371
Traceback.from_exception(
370372
*exc_info,
371373
show_locals=self.show_locals,

0 commit comments

Comments
 (0)