Skip to content

Commit

Permalink
fix: log strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Noyan Aziz authored and Muhammad Noyan Aziz committed Nov 7, 2024
1 parent 09259ca commit da7b8b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commerce_coordinator/apps/ecommerce/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()

0 comments on commit da7b8b1

Please sign in to comment.