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()