Skip to content

Commit

Permalink
Merge pull request #88 from mwarzybok-sumoheavy/feature/SP-874
Browse files Browse the repository at this point in the history
fix logger name
  • Loading branch information
bobbrodie authored Feb 28, 2024
2 parents 80d4866 + 6d8ce75 commit d487e57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bitpay/clients/bitpay_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ def post(
:raises BitPayApiException
"""
full_url = self.__base_url + uri

LoggerProvider.get_logger().log_request("POST", uri, form_data)

form_data = json.dumps(form_data, default=json_serialize)
if signature_required:
self.__headers["x-signature"] = sign(full_url + form_data, self.__ec_key)
self.__headers["x-identity"] = get_compressed_public_key_from_pem(
self.__ec_key
)

LoggerProvider.get_logger().log_request("POST", uri, form_data)

return requests.post(full_url, data=form_data, headers=self.__headers)

def get(
Expand Down
File renamed without changes.

0 comments on commit d487e57

Please sign in to comment.