From 16c926c2e7ecfffb66d5e1e9e67daddbcedb9ea3 Mon Sep 17 00:00:00 2001 From: foefl Date: Thu, 20 Mar 2025 14:06:32 +0100 Subject: [PATCH] using stack info in logging --- pyproject.toml | 2 +- src/delta_barth/errors.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 99ea900..785a2b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "delta-barth" -version = "0.3.1" +version = "0.3.2" description = "prognosis module" authors = [ {name = "Florian Förster", email = "f.foerster@d-opt.com"}, diff --git a/src/delta_barth/errors.py b/src/delta_barth/errors.py index 069d6d7..3c7e834 100644 --- a/src/delta_barth/errors.py +++ b/src/delta_barth/errors.py @@ -1,6 +1,5 @@ from __future__ import annotations -import traceback import typing as t from collections.abc import Callable from functools import wraps @@ -239,12 +238,9 @@ def wrap_result( status = ResultWrapper( result=NotSet(), exception=err, code_on_error=code_on_error ) - fmt_exc = traceback.format_exception(err) - exc_str = "".join(fmt_exc) logger.error( - "An exception in routine %s occurred:\n%s", + "An exception in routine %s occurred, stack trace:", func.__name__, - exc_str, stack_info=True, )