Agent: Suppress debug logging of urllib3

urllib3 debug logs are unnecessarily verbose for our purposes. Setting
the log level of urllib3 to debug unclutters the logs and makes
debugging simpler.
This commit is contained in:
Mike Salvatore 2022-03-03 09:37:17 -05:00
parent 4408601332
commit 9af6c3bed1
2 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,10 @@ class AutomatedMaster(IMaster):
logger.warning("Forcefully killing the simulation")
def _wait_for_master_stop_condition(self):
logger.debug(
"Checking for the stop signal from the island every "
f"{CHECK_ISLAND_FOR_STOP_COMMAND_INTERVAL_SEC} seconds."
)
timer = Timer()
timer.set(CHECK_ISLAND_FOR_STOP_COMMAND_INTERVAL_SEC)

View File

@ -53,6 +53,7 @@ from infection_monkey.utils.monkey_log_path import get_monkey_log_path
from infection_monkey.utils.signal_handler import register_signal_handlers, reset_signal_handlers
logger = logging.getLogger(__name__)
logging.getLogger("urllib3").setLevel(logging.INFO)
class InfectionMonkey: