From e11a75eb48f20f4e88a903a4c70cdc2282e24b3f Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Mon, 19 Feb 2018 18:32:43 +0200 Subject: [PATCH] Exceptions are logged and sent to island --- chaos_monkey/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chaos_monkey/main.py b/chaos_monkey/main.py index ef57492cc..6bebc8cef 100644 --- a/chaos_monkey/main.py +++ b/chaos_monkey/main.py @@ -121,6 +121,8 @@ def main(): json.dump(json_dict, config_fo, skipkeys=True, sort_keys=True, indent=4, separators=(',', ': ')) return True + except Exception: + LOG.exception("Exception thrown from monkey's start function") finally: monkey.cleanup()