From 6398a7ca5fcd3394a24aa59f686c5f3ef3e45b93 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 22 Dec 2025 14:25:41 +0100 Subject: [PATCH] =?UTF-8?q?Debug:=20=C3=86ndret=20logging=20level=20for=20?= =?UTF-8?q?kontakt=20linking=20fejl=20(debug=20=E2=86=92=20info)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/system/backend/sync_router.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")