diff --git a/app/system/backend/sync_router.py b/app/system/backend/sync_router.py index ddccdfc..2e16835 100644 --- a/app/system/backend/sync_router.py +++ b/app/system/backend/sync_router.py @@ -307,7 +307,11 @@ async def sync_vtiger_contacts() -> Dict[str, Any]: linked_count += 1 logger.info(f"🔗 Linket kontakt {first_name} {last_name} til firma: {customer_name}") else: - logger.debug(f"⚠️ Kunde ikke fundet for account_id={account_id} (kontakt: {first_name} {last_name})") + logger.info(f"⚠️ Kunde ikke fundet for account_id={account_id} (kontakt: {first_name} {last_name})") + elif account_id: + logger.info(f"⚠️ Ingen contact_id for {first_name} {last_name} (account_id={account_id})") + else: + logger.debug(f"⏭️ Ingen account_id for kontakt {first_name} {last_name}") logger.info(f"✅ vTiger kontakt sync fuldført: {created_count} oprettet, {updated_count} opdateret, {linked_count} linket, {skipped_count} sprunget over af {len(contacts)} totalt")