mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Added a missing await
for an HP AddArtist call. Added some more Trace logging.
This commit is contained in:
parent
f931750f98
commit
e57cdf8c6f
2 changed files with 7 additions and 16 deletions
|
@ -58,9 +58,7 @@ namespace Ombi.Api
|
|||
var client = new RestClient { BaseUrl = baseUri };
|
||||
|
||||
var response = client.Execute<T>(request);
|
||||
Log.Trace("Api Content Response:");
|
||||
Log.Trace(response.Content);
|
||||
|
||||
Log.Trace($"Request made to {client.BaseUrl} with details of {request.ToString()}. The response was {response.Content}");
|
||||
|
||||
if (response.ErrorException != null)
|
||||
{
|
||||
|
@ -85,9 +83,7 @@ namespace Ombi.Api
|
|||
{
|
||||
var client = new RestClient { BaseUrl = baseUri };
|
||||
var response = client.Execute(request);
|
||||
Log.Trace("Request made to " + client.BaseUrl + " with details of " + request.ToString());
|
||||
Log.Trace("Api Content Response:");
|
||||
Log.Trace(response.Content);
|
||||
Log.Trace($"Request made to {client.BaseUrl} with details of {request.ToString()}. The response was {response.Content}");
|
||||
|
||||
if (response.ErrorException != null)
|
||||
{
|
||||
|
@ -104,9 +100,7 @@ namespace Ombi.Api
|
|||
{
|
||||
var client = new RestClient { BaseUrl = baseUri };
|
||||
var response = client.Execute(request);
|
||||
Log.Trace("Request made to " + client.BaseUrl + " with details of " + request.ToString());
|
||||
Log.Trace("Api Content Response:");
|
||||
Log.Trace(response.Content);
|
||||
Log.Trace($"Request made to {client.BaseUrl} with details of {request.ToString()}. The response was {response.Content}");
|
||||
if (response.ErrorException != null)
|
||||
{
|
||||
Log.Error(response.ErrorException);
|
||||
|
@ -114,10 +108,7 @@ namespace Ombi.Api
|
|||
throw new ApiRequestException(message, response.ErrorException);
|
||||
}
|
||||
|
||||
Log.Trace("Deserialzing Object");
|
||||
var json = JsonConvert.DeserializeObject<T>(response.Content, _settings);
|
||||
Log.Trace("Finished Deserialzing Object");
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue