leapp/0017-squashme-Put-trace-in-the-details.patch

28 lines
1.1 KiB
Diff
Raw Normal View History

From c4c180008d6446c6491e4e77bd6d23e58d166da0 Mon Sep 17 00:00:00 2001
From: Inessa Vasilevskaya <ivasilev@redhat.com>
Date: Fri, 23 Jun 2023 15:09:28 +0200
Subject: [PATCH 17/18] [squashme] Put trace in the details
---
leapp/messaging/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/leapp/messaging/__init__.py b/leapp/messaging/__init__.py
index de8ac9b..c42b5d7 100644
--- a/leapp/messaging/__init__.py
+++ b/leapp/messaging/__init__.py
@@ -147,8 +147,8 @@ class BaseMessaging(object):
self._do_produce(model, actor, self._errors)
def report_stacktrace(self, message, trace, actorname):
- model = ErrorModel(message="{message}\n{trace}".format(message=message, trace=trace),
- actor=actorname, severity="fatal", time=datetime.datetime.now())
+ model = ErrorModel(message=message, details=trace, actor=actorname, severity="fatal",
+ time=datetime.datetime.now())
self._do_produce(model, actorname, self._errors)
def request_stop_after_phase(self):
--
2.41.0