Print failed http status codes even when not debugging

Debugging logs every status code, I believe error status codes should be logged even when not debugging, we do not expect those to happen on usual basis, even with Steam
This commit is contained in:
JustArchi
2020-07-03 18:54:13 +02:00
parent 3da90114d1
commit 43a36c4f6c

View File

@@ -695,6 +695,10 @@ namespace ArchiSteamFarm {
return await InternalRequest(redirectUri, httpMethod, data, referer, httpCompletionOption, --maxRedirections).ConfigureAwait(false);
}
if (!Debugging.IsUserDebugging) {
ArchiLogger.LogGenericDebug(response.StatusCode + " <- " + httpMethod + " " + requestUri);
}
if (response.StatusCode.IsClientErrorCode()) {
if (Debugging.IsUserDebugging) {
ArchiLogger.LogGenericDebug(string.Format(Strings.Content, await response.Content.ReadAsStringAsync().ConfigureAwait(false)));