Skip to content

Commit

Permalink
Add warning messages around http calls
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Oct 25, 2023
1 parent c488918 commit ba3ba81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapseclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4845,6 +4845,7 @@ def restGET(
:returns: JSON encoding of response
"""
self.logger.warning(f"Calling restGET: {uri}")
response = self._rest_call(
"get", uri, None, endpoint, headers, retryPolicy, requests_session, **kwargs
)
Expand Down Expand Up @@ -4873,6 +4874,7 @@ def restPOST(
:returns: JSON encoding of response
"""
self.logger.warning(f"Calling restPOST: {uri}")
response = self._rest_call(
"post",
uri,
Expand Down Expand Up @@ -4908,6 +4910,7 @@ def restPUT(
:returns: JSON encoding of response
"""
self.logger.warning(f"Calling restPUT: {uri}")
response = self._rest_call(
"put", uri, body, endpoint, headers, retryPolicy, requests_session, **kwargs
)
Expand All @@ -4932,6 +4935,7 @@ def restDELETE(
:param kwargs: Any other arguments taken by a
`requests <http://docs.python-requests.org/en/latest/>`_ method
"""
self.logger.warning(f"Calling restDELETE: {uri}")
self._rest_call(
"delete",
uri,
Expand Down

0 comments on commit ba3ba81

Please sign in to comment.