Include stack trace when looking an SDK exception.

Possibly the exception shouldn't be logged at all (or just at debug level),
since it's also re-raised and should be handled by the caller instead.
This commit is contained in:
Sybren A. Stüvel 2018-01-03 11:44:49 +01:00
parent ef2cc44ceb
commit 656a878c6a

View File

@ -42,7 +42,7 @@ class FlaskInternalApi(pillarsdk.Api):
content = self.handle_response(response, response.data)
except:
log.warning("%s: Response[%s]: %s", url, response.status_code,
response.data)
response.data, exc_info=True)
raise
return content