mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
Don't log when repo-updater shuts down (#62121)
This should reduce some sentry error reporting for non-actionable errors. Test plan: Will see if sentry is more silent.
This commit is contained in:
parent
366e020552
commit
166b416909
@ -190,8 +190,8 @@ func (s *UpdateScheduler) runUpdateLoop(ctx context.Context) {
|
||||
} else {
|
||||
schedError.WithLabelValues("repoUpdateResponse").Inc()
|
||||
// We don't want to spam our logs when the rate limiter has been set to block all
|
||||
// updates
|
||||
if !strings.Contains(err.Error(), ratelimit.ErrBlockAll.Error()) {
|
||||
// updates, or when repo-updater is shutting down.
|
||||
if !strings.Contains(err.Error(), ratelimit.ErrBlockAll.Error()) && ctx.Err() == nil {
|
||||
subLogger.Error("error updating repo", log.Error(err), log.String("uri", string(repo.Name)))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user