Start logging AWH more extensively

We don't use it anymore, but it's beneficial to catch potential AH issues as well.

I'll make ASFB report potential issues.
This commit is contained in:
Łukasz Domeradzki
2024-03-27 20:36:10 +01:00
parent 9c362dced2
commit b63161c73e
2 changed files with 5 additions and 0 deletions

View File

@@ -300,6 +300,7 @@ public sealed class ArchiWebHandler : IDisposable {
// Try to interpret the failure reason and see if we should try again
switch (response.Content.ErrorCode) {
case null:
case EResult.Busy:
case EResult.DuplicateRequest:
case EResult.ServiceUnavailable:

View File

@@ -78,6 +78,8 @@ public static class SteamUtilities {
int startIndex = errorText.LastIndexOf('(');
if (startIndex < 0) {
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.WarningUnknownValuePleaseReport, nameof(errorText), errorText));
return null;
}
@@ -86,6 +88,8 @@ public static class SteamUtilities {
int endIndex = errorText.IndexOf(')', startIndex + 1);
if (endIndex < 0) {
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.WarningUnknownValuePleaseReport, nameof(errorText), errorText));
return null;
}