Log stack trace of exceptions thrown from exploit

This commit is contained in:
Itay Mizeretz 2017-10-03 16:18:34 +03:00
parent 65f5dbeaaf
commit 14eec1ba99
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ class ChaosMonkey(object):
'exploiter': exploiter.__class__.__name__})
except Exception as exc:
LOG.error("Exception while attacking %s using %s: %s",
LOG.exception("Exception while attacking %s using %s: %s",
machine, exploiter.__class__.__name__, exc)
ControlClient.send_telemetry('exploit', {'result': False, 'machine': machine.__dict__,
'exploiter': exploiter.__class__.__name__})