1
0
Fork 0
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:
Frédéric Guillot 2025-04-06 15:34:41 -07:00
parent 535fd050b7
commit 46e5595a8c
2 changed files with 6 additions and 9 deletions

View file

@ -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()),
)
}
}
}