From 6149ef630bc63c221fea730eff5dc5b00042297c Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 23 Nov 2021 13:18:11 -0500 Subject: [PATCH] Agent: Improve signal handler log message --- monkey/infection_monkey/utils/signal_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/utils/signal_handler.py b/monkey/infection_monkey/utils/signal_handler.py index f15fded3a..a2f865ce2 100644 --- a/monkey/infection_monkey/utils/signal_handler.py +++ b/monkey/infection_monkey/utils/signal_handler.py @@ -12,9 +12,9 @@ class StopSignalHandler: def __init__(self, master: IMaster): self._master = master - def __call__(self, _, __=None): + def __call__(self, signum, __=None): + logger.info(f"The Monkey Agent received signal {signum}") self._master.terminate() - logger.debug("Some kind of interrupt signal was sent to the Monkey Agent") raise PlannedShutdownException("Monkey Agent got an interrupt signal")