Skip to content

Saleor Core: the high performance, composable, headless commerce API.

use exception to get exc_info

Maciej Korycinski21b12239e789
diff --git a/saleor/plugins/avatax/__init__.py b/saleor/plugins/avatax/__init__.py
index f3ac1ff646..1569bc55a2 100644
--- a/saleor/plugins/avatax/__init__.py
+++ b/saleor/plugins/avatax/__init__.py
@@ -87,7 +87,7 @@ def api_post_request(
logger.exception("Avatax response contains errors %s", json_response)
return json_response
except requests.exceptions.RequestException:
- logger.error("Fetching taxes failed %s", url)
+ logger.exception("Fetching taxes failed %s", url)
return {}
except json.JSONDecodeError:
content = response.content if response else "Unable to find the response"
@@ -111,7 +111,7 @@ def api_get_request(
logger.error("Avatax response contains errors %s", json_response)
return json_response
except requests.exceptions.RequestException:
- logger.error("Failed to fetch data from %s", url)
+ logger.exception("Failed to fetch data from %s", url)
return {}
except json.JSONDecodeError:
content = response.content if response else "Unable to find the response"