Skip to content

Commit 9dcc731

Browse files
committed
chore: more logs
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
1 parent ff6f9fc commit 9dcc731

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/substrapp/clients/organization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def _http_request(
125125

126126
response = None
127127
try:
128+
logger.ingo("Sending http request", headers=headers, timeout=_HTTP_TIMEOUT, verify=_HTTP_VERIFY)
128129
response = _HTTP_METHOD_TO_FUNC[method](
129130
url,
130131
headers=_add_mandatory_headers(headers, channel),
@@ -133,6 +134,7 @@ def _http_request(
133134
timeout=_HTTP_TIMEOUT,
134135
**_http_request_kwargs(data, stream),
135136
)
137+
logger.ingo("Fecthing http response success", response=response)
136138
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout) as exc:
137139
raise OrganizationError(f"Failed to connect to {organization_id}") from exc
138140

0 commit comments

Comments
 (0)