forked from p15670423/monkey
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:
parent
4408601332
commit
9af6c3bed1
|
@ -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)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue