30 lines
1.4 KiB
Diff
30 lines
1.4 KiB
Diff
|
From 1420bce48a5fb1dbe27980e783cc895852762663 Mon Sep 17 00:00:00 2001
|
||
|
From: Inessa Vasilevskaya <ivasilev@redhat.com>
|
||
|
Date: Thu, 22 Jun 2023 16:38:26 +0200
|
||
|
Subject: [PATCH 16/18] [squashme] Log actor crash
|
||
|
|
||
|
---
|
||
|
leapp/workflows/__init__.py | 6 +++++-
|
||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/leapp/workflows/__init__.py b/leapp/workflows/__init__.py
|
||
|
index 18cd8f2..7f01e0d 100644
|
||
|
--- a/leapp/workflows/__init__.py
|
||
|
+++ b/leapp/workflows/__init__.py
|
||
|
@@ -340,7 +340,11 @@ class Workflow(with_metaclass(WorkflowMeta)):
|
||
|
instance.run()
|
||
|
except BaseException as exc:
|
||
|
self._unhandled_exception = True
|
||
|
- messaging.report_stacktrace(message=exc.message, trace=exc.exception_info, actorname=actor.name)
|
||
|
+ messaging.report_stacktrace(message=exc.message,
|
||
|
+ trace=exc.exception_info,
|
||
|
+ actorname=actor.name)
|
||
|
+ current_logger.error('Actor {actor} has crashed: {trace}'.format(actor=actor.name,
|
||
|
+ trace=exc.exception_info))
|
||
|
raise
|
||
|
|
||
|
self._stop_after_phase_requested = messaging.stop_after_phase or self._stop_after_phase_requested
|
||
|
--
|
||
|
2.41.0
|
||
|
|