mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-17 21:26:22 -04:00
Log indexer response to Trace if an exception occurs.
This commit is contained in:
@@ -297,7 +297,15 @@ namespace NzbDrone.Core.Indexers
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user