Add datasync logging (Z#23225588) (#5928)

* Fix inconsistent log messages

* Add logging for successfully synced orders

(debugging orders that might get silently skipped)
This commit is contained in:
luelista
2026-02-25 09:49:52 +01:00
committed by GitHub
parent 7cce1c9219
commit da43984ad2
2 changed files with 6 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ class OrderSyncQueue(models.Model):
def set_sync_error(self, failure_mode, messages, full_message):
logger.exception(
f"Could not sync order {self.order.code} to {type(self).__name__} ({failure_mode})"
f"Could not sync order {self.order.code} to {self.sync_provider} ({failure_mode})"
)
self.order.log_action(f"pretix.event.order.data_sync.failed.{failure_mode}", {
"provider": self.sync_provider,