mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Readded logging Download Client responses.
This commit is contained in:
parent
9f34127565
commit
cc0406653a
10 changed files with 28 additions and 9 deletions
|
@ -81,6 +81,11 @@ namespace NzbDrone.Common.Http
|
|||
response = interceptor.PostResponse(response);
|
||||
}
|
||||
|
||||
if (request.LogResponseContent)
|
||||
{
|
||||
_logger.Trace("Response content ({0} bytes): {1}", response.ResponseData.Length, response.Content);
|
||||
}
|
||||
|
||||
if (!RuntimeInfoBase.IsProduction &&
|
||||
(response.StatusCode == HttpStatusCode.Moved ||
|
||||
response.StatusCode == HttpStatusCode.MovedPermanently ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue