Added exception info to monkey main function.

This commit is contained in:
Shay Nehmad 2019-09-05 20:56:00 +03:00
parent 3403d26d70
commit 731e3acb90
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ def main():
json.dump(json_dict, config_fo, skipkeys=True, sort_keys=True, indent=4, separators=(',', ': ')) json.dump(json_dict, config_fo, skipkeys=True, sort_keys=True, indent=4, separators=(',', ': '))
return True return True
except Exception: except Exception as e:
LOG.exception("Exception thrown from monkey's start function") LOG.exception("Exception thrown from monkey's start function. More info: {}".format(e))
finally: finally:
monkey.cleanup() monkey.cleanup()