From 23886e2cf7df4bd323eebd97ce4333da90e47b20 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 3 Dec 2021 06:51:59 -0500 Subject: [PATCH] Agent: Use logger.warning() instead of depricated warn() --- monkey/infection_monkey/master/automated_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/master/automated_master.py b/monkey/infection_monkey/master/automated_master.py index 6e5ce99c3..abb19b85c 100644 --- a/monkey/infection_monkey/master/automated_master.py +++ b/monkey/infection_monkey/master/automated_master.py @@ -54,10 +54,10 @@ class AutomatedMaster(IMaster): self._simulation_thread.join(SHUTDOWN_TIMEOUT) if self._simulation_thread.is_alive(): - logger.warn("Timed out waiting for the simulation to stop") + logger.warning("Timed out waiting for the simulation to stop") # Since the master thread and all child threads are daemon threads, they will be # forcefully killed when the program exits. - logger.warn("Forcefully killing the simulation") + logger.warning("Forcefully killing the simulation") def _wait_for_master_stop_condition(self): timer = Timer()