From 82ecfda40409c86317a64157c58eedb891c91969 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 22 Dec 2025 14:34:07 +0100 Subject: [PATCH] =?UTF-8?q?Debug:=20Tilf=C3=B8jet=20logging=20af=20account?= =?UTF-8?q?=5Fid=20v=C3=A6rdier=20for=20kontakter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/system/backend/sync_router.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/system/backend/sync_router.py b/app/system/backend/sync_router.py index 2e16835..095dd55 100644 --- a/app/system/backend/sync_router.py +++ b/app/system/backend/sync_router.py @@ -283,6 +283,11 @@ async def sync_vtiger_contacts() -> Dict[str, Any]: # Link contact to customer if account_id exists account_id = contact.get('account_id') + + # Debug: Log first 10 contacts with account_id info + if len(contacts) < 20: # Only log for small batches or first few + logger.info(f"🔍 Debug kontakt: {first_name} {last_name}, account_id={account_id}, contact_id={contact_id if 'contact_id' in locals() else 'N/A'}") + if account_id and contact_id: # Find customer by vTiger account ID customer = execute_query(