diff --git a/src/bitpay/clients/bitpay_client.py b/src/bitpay/clients/bitpay_client.py index 6762e28..b1a1500 100644 --- a/src/bitpay/clients/bitpay_client.py +++ b/src/bitpay/clients/bitpay_client.py @@ -51,6 +51,9 @@ 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) @@ -58,8 +61,6 @@ def post( 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( diff --git a/src/bitpay/logger/loging_logger.py b/src/bitpay/logger/logging_logger.py similarity index 100% rename from src/bitpay/logger/loging_logger.py rename to src/bitpay/logger/logging_logger.py