forked from p15670423/monkey
Agent: Log a message in MockMaster.terminate()
This commit is contained in:
parent
357f749557
commit
ea8be28a72
|
@ -1,3 +1,5 @@
|
|||
import logging
|
||||
|
||||
from infection_monkey.i_master import IMaster
|
||||
from infection_monkey.i_puppet import IPuppet, PortScanData, PortStatus
|
||||
from infection_monkey.model.host import VictimHost
|
||||
|
@ -5,6 +7,8 @@ from infection_monkey.telemetry.messengers.i_telemetry_messenger import ITelemet
|
|||
from infection_monkey.telemetry.scan_telem import ScanTelem
|
||||
from infection_monkey.telemetry.system_info_telem import SystemInfoTelem
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
class MockMaster(IMaster):
|
||||
def __init__(self, puppet: IPuppet, telemetry_messenger: ITelemetryMessenger):
|
||||
|
@ -56,7 +60,7 @@ class MockMaster(IMaster):
|
|||
self._telemetry_messenger.send_telemetry(ScanTelem(h))
|
||||
|
||||
def terminate(self) -> None:
|
||||
pass
|
||||
logger.info("Terminating MockMaster")
|
||||
|
||||
def cleanup(self) -> None:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue