From da7b8b1b4f3a61e775df01f0f3fd259b55a74442 Mon Sep 17 00:00:00 2001 From: Muhammad Noyan Aziz Date: Thu, 7 Nov 2024 17:13:13 +0500 Subject: [PATCH] fix: log strings --- commerce_coordinator/apps/ecommerce/clients.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commerce_coordinator/apps/ecommerce/clients.py b/commerce_coordinator/apps/ecommerce/clients.py index a40939ce..05e03913 100644 --- a/commerce_coordinator/apps/ecommerce/clients.py +++ b/commerce_coordinator/apps/ecommerce/clients.py @@ -34,17 +34,17 @@ def get_orders(self, query_params): See sample response in tests.py """ - logger.info('[UserOrdersView] EcommerceAPIClient - get_orders method called at %s', datetime.now()) + logger.info('[UserOrdersView] [EcommerceAPIClient] - get_orders method called at %s', datetime.now()) try: resource_url = urljoin_directory(self.api_base_url, '/orders') logger.info( - '[UserOrdersView] EcommerceAPIClient - Legacy ecommerce get_orders API called at: %s', + '[UserOrdersView] [EcommerceAPIClient] - Legacy ecommerce get_orders API called at: %s', datetime.now() ) response = self.client.get(resource_url, params=query_params) logger.info( - '[UserOrdersView] EcommerceAPIClient - Legacy ecommerce get_orders API finished at: %s', + '[UserOrdersView] [EcommerceAPIClient] - Legacy ecommerce get_orders API finished at: %s', datetime.now() ) response.raise_for_status() @@ -53,5 +53,5 @@ def get_orders(self, query_params): self.log_request_exception(logger, exc) raise - logger.info('[UserOrdersView] EcommerceAPIClient - get_orders method finished at %s', datetime.now()) + logger.info('[UserOrdersView] [EcommerceAPIClient] - get_orders method finished at %s', datetime.now()) return response.json()