diff --git a/dcos/marathon.py b/dcos/marathon.py index 3a314a0ff..e14d7df6b 100644 --- a/dcos/marathon.py +++ b/dcos/marathon.py @@ -159,6 +159,10 @@ def http_req(self, method_fn, path, *args, **kwargs): try: return method_fn(url, *args, **kwargs) except DCOSHTTPException as e: + + logger.error('Marathon Error: %s\n%s', + e.response.reason, e.response.text) + # Marathon is buggy and sometimes returns JSON, sometimes returns # HTML. We only include the body in the error message if it's JSON. try: