mirror of
https://github.com/Lidarr/Lidarr
synced 2026-03-02 10:32:28 +01:00
Log indexer response to Trace if an exception occurs.
This commit is contained in:
parent
5d674a07f7
commit
cb372f284d
1 changed files with 9 additions and 1 deletions
|
|
@ -297,7 +297,15 @@ protected virtual IList<ReleaseInfo> FetchPage(IndexerRequest request, IParseInd
|
|||
{
|
||||
var response = FetchIndexerResponse(request);
|
||||
|
||||
return parser.ParseResponse(response).ToList();
|
||||
try
|
||||
{
|
||||
return parser.ParseResponse(response).ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
_logger.Trace("Unexpected Response content ({0} bytes): {1}", response.HttpResponse.ResponseData.Length, response.HttpResponse.Content);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual IndexerResponse FetchIndexerResponse(IndexerRequest request)
|
||||
|
|
|
|||
Loading…
Reference in a new issue