Skip to content

Commit

Permalink
fix(notion): log the write thing (#2877)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <henry@dust.tt>
  • Loading branch information
fontanierh and Henry Fontanier authored Dec 14, 2023
1 parent 0c0d70e commit e4bc36c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions connectors/src/connectors/notion/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e4bc36c

Please sign in to comment.