forked from p15670423/monkey
Agent: use the refactored startup instead of legacy methods (monkey.start() instead of monkey.legacy_start(), etc.)
This commit is contained in:
parent
0806afed1a
commit
793bb33c8c
|
@ -120,14 +120,12 @@ def main():
|
||||||
monkey = monkey_cls(monkey_args)
|
monkey = monkey_cls(monkey_args)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
monkey.legacy_start()
|
monkey.start()
|
||||||
# monkey.start()
|
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception("Exception thrown from monkey's start function. More info: {}".format(e))
|
logger.exception("Exception thrown from monkey's start function. More info: {}".format(e))
|
||||||
finally:
|
finally:
|
||||||
monkey.legacy_cleanup()
|
monkey.cleanup()
|
||||||
# monkey.cleanup()
|
|
||||||
|
|
||||||
|
|
||||||
if "__main__" == __name__:
|
if "__main__" == __name__:
|
||||||
|
|
Loading…
Reference in New Issue