Add Feed ID in worker error logs

This commit is contained in:
Frédéric Guillot 2020-09-27 13:16:23 -07:00 committed by Frédéric Guillot
parent 0d66f2c6d3
commit 2b74c6779a

View file

@ -26,7 +26,7 @@ func (w *Worker) Run(c chan model.Job) {
err := w.feedHandler.RefreshFeed(job.UserID, job.FeedID)
if err != nil {
logger.Error("[Worker] %v", err)
logger.Error("[Worker] Feed #%d: %v", job.FeedID, err)
}
}
}