mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
refactor: avoid logging twice the feed errors in the background worker
This commit is contained in:
parent
535fd050b7
commit
46e5595a8c
2 changed files with 6 additions and 9 deletions
|
@ -44,13 +44,5 @@ func (w *Worker) Run(c <-chan model.Job) {
|
|||
}
|
||||
metric.BackgroundFeedRefreshDuration.WithLabelValues(status).Observe(time.Since(startTime).Seconds())
|
||||
}
|
||||
|
||||
if localizedError != nil {
|
||||
slog.Warn("Unable to refresh a feed",
|
||||
slog.Int64("user_id", job.UserID),
|
||||
slog.Int64("feed_id", job.FeedID),
|
||||
slog.Any("error", localizedError.Error()),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue