From 2936cec8696c49f0d9a95c4ccb1648964e7f3052 Mon Sep 17 00:00:00 2001 From: RepoDynamicsBot <80158628+AAriam@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:47:26 +0200 Subject: [PATCH] Release version 0.0.0.dev24 --- pyproject.toml | 5 +++-- src/loggerman/logger.py | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cb738d9..44f1035 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,12 +17,13 @@ namespaces = true # ----------------------------------------- Project Metadata ------------------------------------- # [project] -version = "0.0.0.dev23" +version = "0.0.0.dev24" name = "LoggerMan" dependencies = [ - "MDit == 0.0.0.dev9", + "MDit == 0.0.0.dev11", "ActionMan == 0.0.0.dev17", "ProtocolMan == 0.0.0.dev2", + "ExceptionMan == 0.0.0.dev11", "pydantic", "rich", ] diff --git a/src/loggerman/logger.py b/src/loggerman/logger.py index 7facaf1..ee15cfb 100644 --- a/src/loggerman/logger.py +++ b/src/loggerman/logger.py @@ -10,6 +10,7 @@ import actionman as _actionman import mdit as _mdit +from exceptionman import Traceback as _Traceback import rich import rich.traceback import rich._inspect @@ -202,7 +203,7 @@ def process_exit_code(): @staticmethod def traceback( trace: tuple[Type[BaseException], BaseException, TracebackType] | None = None, - width: int = 70, + code_width: int = 88, extra_lines: int = 3, theme: str | None = None, word_wrap: bool = False, @@ -221,9 +222,9 @@ def traceback( return else: exc_type, exc_value, traceback = trace - rich_traceback = rich.traceback.Traceback( - rich.traceback.Traceback.extract(exc_type, exc_value, traceback, show_locals=show_locals), - width=width, + rich_traceback = _Traceback( + _Traceback.extract(exc_type, exc_value, traceback, show_locals=show_locals), + code_width=code_width, extra_lines=extra_lines, theme=theme, word_wrap=word_wrap,