Skip to content

Commit

Permalink
Log unknown metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fghaas committed Mar 11, 2024
1 parent ef42d65 commit a09fcd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webhook_receiver_woocommerce/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def process_line_item(order, item):
email = meta_item['_value']
break
except (IndexError, KeyError, TypeError):
pass
logger.debug('Unknown metadata in order %i, SKU %s: "%s". '
'Ignoring.',
order.id,
sku,
meta)

# Store line item, prop
order_item, created = OrderItem.objects.get_or_create(
Expand Down

0 comments on commit a09fcd8

Please sign in to comment.