From 6d8ce75e45197f1882852b6426f10678084b0eda Mon Sep 17 00:00:00 2001 From: Marcin Warzybok Date: Tue, 27 Feb 2024 12:19:02 +0100 Subject: [PATCH] fix logger name --- src/bitpay/clients/bitpay_client.py | 5 +++-- src/bitpay/logger/{loging_logger.py => logging_logger.py} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename src/bitpay/logger/{loging_logger.py => logging_logger.py} (100%) 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