mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
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:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user