Skip to content

Commit

Permalink
Enhance logging for HQ feeding
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed May 16, 2024
1 parent faf5b42 commit dde4e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/crawl/hq.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (c *Crawl) HQConsumer() {
var HQBatchSize = int(math.Ceil(float64(c.Workers) / 2))

if c.Finished.Get() {
c.Logger.Warn("crawl finished, stopping HQ consumer")
c.Logger.Error("crawl finished, stopping HQ consumer")
break
}

Expand All @@ -179,7 +179,7 @@ func (c *Crawl) HQConsumer() {
if err != nil {
c.Logger.WithFields(c.genLogFields(err, nil, map[string]interface{}{
"batchSize": HQBatchSize,
})).Debugln("error getting new URLs from crawl HQ")
})).Errorln("error getting new URLs from crawl HQ")
}

// send all URLs received in the batch to the frontier
Expand Down

0 comments on commit dde4e10

Please sign in to comment.