Skip to content

Commit

Permalink
fix: edit slack notif logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
nyujacky committed Aug 29, 2024
1 parent e6ac430 commit 73d4b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commerce_coordinator/apps/commercetools/sub_messages/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _prepare_segment_event_properties(in_order, return_line_item_return_id):
if 'refund_response' in result and result['refund_response']:
if result['refund_response'] == 'charge_already_refunded':
logger.info(f'[CT-{tag}] payment intent {payment_intent_id} already has refunded transaction, '
f'sending Zendesk email, message id: {message_id}')
f'sending Slack notification, message id: {message_id}')
else:
logger.debug(f'[CT-{tag}] payment intent {payment_intent_id} refunded. message id: {message_id}')
segment_event_properties = _prepare_segment_event_properties(order, return_line_item_return_id)
Expand Down Expand Up @@ -317,7 +317,7 @@ def _prepare_segment_event_properties(in_order, return_line_item_return_id):
properties=segment_event_properties
)
else: # pragma no cover
logger.info(f'[CT-{tag}] payment intent {payment_intent_id} not refunded. message id: {message_id}')
logger.info(f'[CT-{tag}] payment intent {payment_intent_id} not refunded. Sending Slack notification, message id: {message_id}')

logger.info(f'[CT-{tag}] Finished return for order: {order_id}, line item: {return_line_item_return_id}, '
f'message id: {message_id}')
Expand Down

0 comments on commit 73d4b09

Please sign in to comment.