1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Fix error handling and logging issue after refactoring

This commit is contained in:
Frédéric Guillot 2023-11-01 18:28:24 +00:00
parent ef53bf14ae
commit 500c60b807
21 changed files with 24 additions and 24 deletions

View file

@ -56,11 +56,11 @@ func refreshFeeds(store *storage.Storage) {
slog.Int("worker_id", workerID),
)
if err := feedHandler.RefreshFeed(store, job.UserID, job.FeedID, false); err != nil {
if localizedError := feedHandler.RefreshFeed(store, job.UserID, job.FeedID, false); err != nil {
slog.Warn("Unable to refresh feed",
slog.Int64("feed_id", job.FeedID),
slog.Int64("user_id", job.UserID),
slog.Any("error", err),
slog.Any("error", localizedError.Error()),
)
}
}