From 99dfb8e2ce6ff64b60514708db9e8ff013379fe9 Mon Sep 17 00:00:00 2001 From: marcsello Date: Sun, 11 Apr 2021 14:15:04 +0200 Subject: [PATCH] Minor changes --- single_ursim_control/main.py | 2 +- single_ursim_control/program_executor.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/single_ursim_control/main.py b/single_ursim_control/main.py index 83ebc15..28705b2 100644 --- a/single_ursim_control/main.py +++ b/single_ursim_control/main.py @@ -50,7 +50,7 @@ def main(): executor = ProgramExecutor(program, loop=True) def handle_stop_signal(signum, frame): - logging.warning(f"Signal {signum} received. Stopping execution!") + logging.warning(f"Signal {signum} received. Aborting execution!") executor.abort() # Should be possible to call only once diff --git a/single_ursim_control/program_executor.py b/single_ursim_control/program_executor.py index a10a202..e963eb5 100644 --- a/single_ursim_control/program_executor.py +++ b/single_ursim_control/program_executor.py @@ -32,6 +32,7 @@ class ProgramExecutor(Thread): self._logger = logging.getLogger("program_executor") def abort(self): + self._logger.debug("Aborting due to external request...") self._state = ProgramExecutorStates.ABORTED self._program[self._pc].abort()