Agent: use the refactored startup instead of legacy methods (monkey.start() instead of monkey.legacy_start(), etc.)

This commit is contained in:
VakarisZ 2021-12-01 17:04:45 +02:00
parent 0806afed1a
commit 793bb33c8c
1 changed files with 2 additions and 4 deletions

View File

@ -120,14 +120,12 @@ def main():
monkey = monkey_cls(monkey_args)
try:
monkey.legacy_start()
# monkey.start()
monkey.start()
return True
except Exception as e:
logger.exception("Exception thrown from monkey's start function. More info: {}".format(e))
finally:
monkey.legacy_cleanup()
# monkey.cleanup()
monkey.cleanup()
if "__main__" == __name__: