From 991ecefe3c7da996d7ff5a3f0c4db4fe1404ca2b Mon Sep 17 00:00:00 2001 From: omgbeez <251408589+omgbeez@users.noreply.github.com> Date: Fri, 13 Feb 2026 17:09:16 -0500 Subject: [PATCH] Clarify error messages in `TorrentRunner` to distinguish between provider and runner errors. --- server/RdtClient.Service/Services/TorrentRunner.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/RdtClient.Service/Services/TorrentRunner.cs b/server/RdtClient.Service/Services/TorrentRunner.cs index 6e98a1f..4c40837 100644 --- a/server/RdtClient.Service/Services/TorrentRunner.cs +++ b/server/RdtClient.Service/Services/TorrentRunner.cs @@ -638,9 +638,9 @@ public class TorrentRunner(ILogger logger, Torrents torrents, Dow Log($"Torrent reported an error: {torrent.RdStatusRaw}", torrent); Log($"Torrent retry count {torrent.RetryCount}/{torrent.TorrentRetryAttempts}", torrent); - Log($"Received RealDebrid error: {torrent.RdStatusRaw}, not processing further", torrent); + Log($"Received provider error: {torrent.RdStatusRaw}, not processing further", torrent); - await torrents.UpdateComplete(torrent.TorrentId, $"Received RealDebrid error: {torrent.RdStatusRaw}.", DateTimeOffset.UtcNow, true); + await torrents.UpdateComplete(torrent.TorrentId, $"Debrid error: {torrent.RdStatusRaw}.", DateTimeOffset.UtcNow, true); continue; } @@ -712,7 +712,7 @@ public class TorrentRunner(ILogger logger, Torrents torrents, Dow catch (Exception ex) { logger.LogError(ex.Message, "Torrent processing result in an unexpected exception: {Message}", ex.Message); - await torrents.UpdateComplete(torrent.TorrentId, ex.Message, DateTimeOffset.UtcNow, true); + await torrents.UpdateComplete(torrent.TorrentId, $"Runner error: {ex.Message}", DateTimeOffset.UtcNow, true); } }