diff --git a/connectors/src/connectors/notion/temporal/activities.ts b/connectors/src/connectors/notion/temporal/activities.ts index 16bbff20780a..64930710c6a7 100644 --- a/connectors/src/connectors/notion/temporal/activities.ts +++ b/connectors/src/connectors/notion/temporal/activities.ts @@ -181,13 +181,15 @@ export async function fetchDatabaseChildPages({ }) .map((p) => p.id); - localLogger.info( - { - initial_count: filteredPageIds.length, - filtered_count: filteredPageIds.length - filteredPageIds.length, - }, - "Filtered out databases already up to date." - ); + if (filteredPageIds.length < pages.length) { + localLogger.info( + { + initial_count: pages.length, + filtered_count: pages.length - filteredPageIds.length, + }, + "Filtered out database child pages already up to date." + ); + } return { pageIds: filteredPageIds,