Skip to content

Commit

Permalink
chore: more logs
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
  • Loading branch information
ThibaultFy committed Jul 9, 2024
1 parent ff6f9fc commit 9dcc731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/substrapp/clients/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def _http_request(

response = None
try:
logger.ingo("Sending http request", headers=headers, timeout=_HTTP_TIMEOUT, verify=_HTTP_VERIFY)
response = _HTTP_METHOD_TO_FUNC[method](
url,
headers=_add_mandatory_headers(headers, channel),
Expand All @@ -133,6 +134,7 @@ def _http_request(
timeout=_HTTP_TIMEOUT,
**_http_request_kwargs(data, stream),
)
logger.ingo("Fecthing http response success", response=response)
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout) as exc:
raise OrganizationError(f"Failed to connect to {organization_id}") from exc

Expand Down

0 comments on commit 9dcc731

Please sign in to comment.