Skip to content

Commit

Permalink
Flav/add log to webcrawler (#3967)
Browse files Browse the repository at this point in the history
* Add url in webcrawler error logs

* 🔈
  • Loading branch information
flvndvd authored Feb 27, 2024
1 parent 14081cf commit ada0942
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connectors/src/connectors/webcrawler/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export async function crawlWebsiteByConnectorId(connectorId: ModelId) {
configId: webCrawlerConfig.id,
documentLen: extracted.length,
title: pageTitle,
url,
},
`Document is empty or too big to be upserted. Skipping`
);
Expand All @@ -224,6 +225,7 @@ export async function crawlWebsiteByConnectorId(connectorId: ModelId) {
error: e,
connectorId: connector.id,
configId: webCrawlerConfig.id,
url,
},
"Webcrawler error while upserting document"
);
Expand Down

0 comments on commit ada0942

Please sign in to comment.