Skip to content

Commit

Permalink
fix: 🐛 improve error logging in RemoveTorrents to include torrent has…
Browse files Browse the repository at this point in the history
…h and skip processing on tracker retrieval failure
  • Loading branch information
blackfyre committed Nov 18, 2024
1 parent fcd8a9f commit 8542320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transmission.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ func (app *app) RemoveTorrents() error {
tracker, err := app.db.GetTrackerByHash(*torrent.HashString)

if err != nil {
app.logger.Error("failed to get tracker by hash", "error", err)
app.logger.Error(fmt.Sprintf("failed to get tracker by hash %s", *torrent.HashString), "error", err)
app.logger.Info("Skipping torrent", "name", *torrent.Name)
continue
}

Expand Down

0 comments on commit 8542320

Please sign in to comment.