Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Apr 12, 2016
1 parent 790e6ba commit 54ad58a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ArchiSteamFarm/WebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ internal async Task<JObject> UrlGetToJObject(string request, string referer = nu
try {
jObject = JObject.Parse(content);
} catch (JsonException e) {
Logging.LogGenericException(e);
Logging.LogGenericException(e, Identifier);
return null;
}

Expand All @@ -213,7 +213,7 @@ internal async Task<XmlDocument> UrlGetToXML(string request, string referer = nu
try {
xmlDocument.LoadXml(content);
} catch (XmlException e) {
Logging.LogGenericException(e);
Logging.LogGenericException(e, Identifier);
return null;
}

Expand All @@ -235,7 +235,7 @@ private async Task<HttpResponseMessage> UrlRequest(string request, HttpMethod ht
try {
requestMessage.Content = new FormUrlEncodedContent(data);
} catch (UriFormatException e) {
Logging.LogGenericException(e);
Logging.LogGenericException(e, Identifier);
return null;
}
}
Expand All @@ -257,6 +257,7 @@ private async Task<HttpResponseMessage> UrlRequest(string request, HttpMethod ht
if (responseMessage != null) {
Logging.LogGenericError("Status code: " + responseMessage.StatusCode, Identifier);
Logging.LogGenericError("Content: " + Environment.NewLine + await responseMessage.Content.ReadAsStringAsync().ConfigureAwait(false), Identifier);
responseMessage.Dispose();
}
}
return null;
Expand Down

0 comments on commit 54ad58a

Please sign in to comment.