Skip to content

Commit

Permalink
temp: add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aht007 committed Jan 13, 2025
1 parent d333aef commit ea6f328
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion commerce_coordinator/apps/commercetools/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def post(self, request):

message_details = OrderLineItemMessageInputSerializer(data=input_data)
message_details.is_valid(raise_exception=True)
logger.info("Serialized message details: %s for order_id: %s",
message_details,
message_details.data["order_id"],
)

order_id = message_details.data['order_id']
line_item_state_id = message_details.data['to_state']['id']
Expand All @@ -55,7 +59,9 @@ def post(self, request):
return Response(status=status.HTTP_200_OK)
else:
self.mark_running(tag, order_id)


logger.info("Sending fulfill_order_placed_message_signal for order_id: %s and line_item_state_id: %s",
order_id, line_item_state_id)
fulfill_order_placed_message_signal.send_robust(
sender=self,
order_id=order_id,
Expand Down

0 comments on commit ea6f328

Please sign in to comment.