1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 17:17:02 +00:00

Now logging nzb&torrent response sizes.

This commit is contained in:
Taloth Saldono 2015-07-22 20:33:20 +02:00
parent 794a7957ef
commit 9fe8477a40
2 changed files with 4 additions and 0 deletions

View file

@ -125,6 +125,8 @@ private string DownloadFromWebUrl(RemoteEpisode remoteEpisode, String torrentUrl
} }
torrentFile = response.ResponseData; torrentFile = response.ResponseData;
_logger.Debug("Downloading torrent for episode '{0}' finished ({1} bytes from {2})", torrentFile.Length, torrentUrl);
} }
catch (HttpException ex) catch (HttpException ex)
{ {

View file

@ -48,6 +48,8 @@ public override String Download(RemoteEpisode remoteEpisode)
try try
{ {
nzbData = _httpClient.Get(new HttpRequest(url)).ResponseData; nzbData = _httpClient.Get(new HttpRequest(url)).ResponseData;
_logger.Debug("Downloaded nzb for episode '{0}' finished ({1} bytes from {2})", nzbData.Length, url);
} }
catch (HttpException ex) catch (HttpException ex)
{ {