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:
parent
ef2cc44ceb
commit
656a878c6a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user