More logging

This commit is contained in:
2025-09-25 02:07:20 +02:00
parent ae725b44e3
commit fdde64021b
3 changed files with 9 additions and 1 deletions

View File

@@ -36,9 +36,12 @@ public abstract class DownloadClient
TimeSpan rateLimitTimeout = timeBetweenRequests.Subtract(now.Subtract(LastExecutedRateLimit[requestType]));
Log.Debug($"Request limit {requestType} {rateLimit}/Minute timeBetweenRequests: {timeBetweenRequests:ss'.'fffff} Timeout: {rateLimitTimeout:ss'.'fffff}");
if (rateLimitTimeout > TimeSpan.Zero)
{
Log.Info($"Waiting {rateLimitTimeout} for {url}");
Thread.Sleep(rateLimitTimeout);
}
// Make the request
RequestResult result = MakeRequestInternal(url, referrer, clickButton);