Added depth logging for easier debugging down the line

This commit is contained in:
Shay Nehmad 2020-05-10 15:09:43 +03:00
parent 10d1e7dc0b
commit bd18893089
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class InfectionMonkey(object):
if self._opts.depth is not None: if self._opts.depth is not None:
WormConfiguration._depth_from_commandline = True WormConfiguration._depth_from_commandline = True
WormConfiguration.depth = self._opts.depth WormConfiguration.depth = self._opts.depth
LOG.debug(f"Setting propagation depth from command line")
LOG.debug(f"Set propagation depth to {WormConfiguration.depth}")
self._keep_running = True self._keep_running = True
self._network = NetworkScanner() self._network = NetworkScanner()