From 076270ab8678faa0dab66aafc97544ef16c0cceb Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 29 Jan 2026 10:54:15 +0530 Subject: [PATCH] fix(backend): enhance indexing success logging to include informational warnings about API limitations --- .../app/routes/search_source_connectors_routes.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/surfsense_backend/app/routes/search_source_connectors_routes.py b/surfsense_backend/app/routes/search_source_connectors_routes.py index 26cf82e81..a27c2125c 100644 --- a/surfsense_backend/app/routes/search_source_connectors_routes.py +++ b/surfsense_backend/app/routes/search_source_connectors_routes.py @@ -1325,8 +1325,15 @@ async def _run_indexing_with_notifications( "no " in error_or_warning_lower and "found" in error_or_warning_lower ) + # Informational warnings - sync succeeded but some content couldn't be synced + # These are NOT errors, just notifications about API limitations or recommendations + is_info_warning = ( + "couldn't be synced" in error_or_warning_lower + or "using legacy token" in error_or_warning_lower + or "(api limitation)" in error_or_warning_lower + ) - if is_duplicate_warning or is_empty_result: + if is_duplicate_warning or is_empty_result or is_info_warning: # These are success cases - sync worked, just found nothing new logger.info(f"Indexing completed successfully: {error_or_warning}") # Still update timestamp so ElectricSQL syncs and clears "Syncing" UI