1 parent 092633c commit 37ff877Copy full SHA for 37ff877
1 file changed
src/isar/state_machine/states/monitor.py
@@ -75,13 +75,16 @@ def _run(self) -> None:
75
except ThreadedRequestNotFinishedError:
76
time.sleep(self.state_machine.sleep_time)
77
continue
78
-
79
except (
80
RobotCommunicationTimeoutException,
81
RobotCommunicationException,
82
) as e:
83
task_failed: bool = self._handle_communication_retry(e)
84
if task_failed:
+ self.logger.error(
85
+ f"Monitoring task {self.state_machine.current_task.id[:8]} failed "
86
+ f"because: {e.error_description}"
87
+ )
88
status = TaskStatus.Failed
89
else:
90
0 commit comments