Skip to content

Commit

Permalink
refactor: update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ngshiheng committed Jun 9, 2024
1 parent cd391f0 commit d005ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/crawler/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (a *App) Crawl() {
"status_code": r.StatusCode,
"url": r.Request.URL,
},
).Warnf("delay for %v before next request", delay)
).Warnf("retrying request in %v", delay)
r.Ctx.Put("attempt", attempt+1)
time.Sleep(delay)
r.Request.Retry()
Expand Down Expand Up @@ -277,7 +277,7 @@ func (a *App) Crawl() {
"status_code": r.StatusCode,
"url": r.Request.URL,
},
).Warnf("delay for %v before next request", delay)
).Warnf("retrying request in %v", delay)
r.Ctx.Put("attempt", attempt+1)
time.Sleep(delay)
r.Request.Retry()
Expand Down

0 comments on commit d005ae2

Please sign in to comment.