Skip to content

Commit ca7fd06

Browse files
committed
Add attempt count to debug logs where relevant
1 parent 30efd71 commit ca7fd06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SabreTools.RedumpLib/Web/RedumpClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public RedumpClient(int retryCount = 3, int timeoutSeconds = 30)
223223
{
224224
try
225225
{
226-
if (Debug) Console.WriteLine($"DEBUG: DownloadData(\"{uri}\")");
226+
if (Debug) Console.WriteLine($"DEBUG: DownloadData(\"{uri}\"), Attempt {i + 1} of {RetryCount}");
227227
#if NET40
228228
return await Task.Factory.StartNew(() => _internalClient.DownloadData(uri));
229229
#elif NETFRAMEWORK || NETSTANDARD2_0_OR_GREATER
@@ -291,7 +291,7 @@ public RedumpClient(int retryCount = 3, int timeoutSeconds = 30)
291291
{
292292
try
293293
{
294-
if (Debug) Console.WriteLine($"DEBUG: DownloadString(\"{uri}\")");
294+
if (Debug) Console.WriteLine($"DEBUG: DownloadString(\"{uri}\"), Attempt {i + 1} of {RetryCount}");
295295
#if NET40
296296
return await Task.Factory.StartNew(() => _internalClient.DownloadString(uri));
297297
#elif NETFRAMEWORK || NETSTANDARD2_0_OR_GREATER

0 commit comments

Comments
 (0)