This commit is contained in:
JustArchi
2021-01-04 15:06:34 +01:00
parent 0c199b10f8
commit 0b74f65c3b

View File

@@ -992,6 +992,10 @@ namespace ArchiSteamFarm {
}
if (requestOptions.HasFlag(ERequestOptions.ReturnServerErrors) && response.StatusCode.IsServerErrorCode()) {
if (Debugging.IsUserDebugging) {
ArchiLogger.LogGenericDebug(string.Format(CultureInfo.CurrentCulture, Strings.Content, await response.Content.ReadAsStringAsync().ConfigureAwait(false)));
}
// Do not retry on server errors in this case
return response;
}