From 656a878c6a55495752c06145bd74f30b6321643b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 3 Jan 2018 11:44:49 +0100 Subject: [PATCH] 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. --- pillar/sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/sdk.py b/pillar/sdk.py index 119e33e7..bfe23bda 100644 --- a/pillar/sdk.py +++ b/pillar/sdk.py @@ -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