Skip to content

Commit 2317f90

Browse files
committed
log the crawl error
1 parent f0a8bea commit 2317f90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/crawl/scheduler.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,10 @@ func (s *Scheduler) handleResult(ctx context.Context, cr Result) {
410410
}
411411
}
412412

413-
if cr.ConnectError == nil && cr.CrawlError != nil {
413+
if cr.CrawlError != nil {
414+
// Don't count this against the "dialability" errors - for now.
415+
// s.connErrs[cr.CrawlErrorStr] += 1
416+
414417
// Log and count crawl errors
415418
if cr.CrawlErrorStr == models.NetErrorUnknown {
416419
logEntry = logEntry.WithError(cr.CrawlError)

0 commit comments

Comments
 (0)